comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Removing fields from a structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Removing fields from a structure [message #52420] Thu, 01 February 2007 09:27
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
I was wondering if there's a simple way to remove a field from a
structure?

I can envision a manual way:
0) creating a new structure variable for the result
1) reading the original's tag names
2) stepping through tag by tag using indexed value references, like a.
(i)
3) using create_struct() to put the tags and values into the new
structure, one by one, except for the tag(s) we're removing.

Does anyone have a more elegant suggestion?
M. Katz
[Message index]
 
Read Message
Previous Topic: Filter image with moving window and averaging pixels
Next Topic: Re: the sky is falling down again

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:19:32 PDT 2025

Total time taken to generate the page: 0.00482 seconds