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

Home » Public Forums » archive » Find all user-defined structure definitions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Find all user-defined structure definitions [message #85391] Tue, 30 July 2013 07:03 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
I realize that one can find all the structure definitions using help:

HELP, /STRUCTURES

However, I get 469 element string array out (with the output keyword) after a .reset_session. I then have to search through for my structure. This looks ugly to me.

Is there an easier way to know if a structure has been defined already?
If I use Tag_Names() or N_Tags(), I get an error if it has not been defined.

So far my solution looks like:

Help, /Structures, Output=HelpOut
Index=Where(StrPos(HelpOut,'MYSTRUCTURE') GE 0, Count)
IF Count EQ 0 THEN print, 'create structure'

Regards,
Helder
[Message index]
 
Read Message
Read Message
Previous Topic: Modifying Arrays and Structures in HASH's (hint: you can't)
Next Topic: Re: Find all user-defined structure definitions

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

Current Time: Wed Oct 08 17:23:48 PDT 2025

Total time taken to generate the page: 0.00447 seconds