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

Home » Public Forums » archive » Re: resetting structs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: resetting structs [message #12260 is a reply to message #12250] Thu, 23 July 1998 00:00 Go to previous message
Phillip & Suzanne[1] is currently offline  Phillip & Suzanne[1]
Messages: 1
Registered: July 1998
Junior Member
Don;

Once a NAMED structure has been defined, it cannot be redeclared differently.
Thus, you would have to create an anonymous structure. If you are trying to
do this in an object, that won't work. The values of the data can change from
one instance of the structure to another, but the names and types of variables
in the structure can't. At the IDL command line, try the following:

struct = {data:0}
struct = {mydata:0}

This will neither cause errors nor get ignored, but your structure will be anonymous.

Phillip David

> how does one re-declare a struct in the IDLDE? if i
> create

> struct = {junk, data:0}

> but later decide that i want to do

> struct = { junk, mydata:0 }

> i either get an error (if in the ide commandline), or
> if i do this in a "junk__define.pro" and use a ".compile
> junk__define.pro", i get no change in my structure.
> this has caused no end of pain for me.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cut, copy and paste
Next Topic: Re: Need help reseting widget buttons

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

Current Time: Sun Nov 30 09:15:33 PST 2025

Total time taken to generate the page: 0.15944 seconds