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

Home » Public Forums » archive » Re: obtaining a structure's name
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: obtaining a structure's name [message #41078] Wed, 22 September 2004 11:35
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
R.G. Stockwell wrote:
> "Paul Van Delst" <paul.vandelst@noaa.gov> wrote in message news:cisfgr$nn1$1@news.nems.noaa.gov...
>
>> Hello,
>>
>> Apologies if this is a brain-dead question, but perusal of the IDL help was unsatisfactory
>> (and I couldn't find the required information :o) Ehem..
>>
>> If I have a structure definition routine, mystruct__define.pro, that I use to create a
>> structure like so,
>> x = {mystruct}
>> is there any way to obtain the structure name (apart from using "HELP, /STRUCTURE, x") ?
>>
>> Thanks,
>>
>> paulv
>
>
> Apology accepted :)
>
> print,tag_names(x,/structure_name)

D'oh!

Thanks,

paulv
Re: obtaining a structure's name [message #41079 is a reply to message #41078] Wed, 22 September 2004 11:06 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <cisfgr$nn1$1@news.nems.noaa.gov>,
Paul Van Delst <paul.vandelst@noaa.gov> wrote:

> Hello,
>
> Apologies if this is a brain-dead question, but perusal of the IDL help was
> unsatisfactory
> (and I couldn't find the required information :o) Ehem..
>
> If I have a structure definition routine, mystruct__define.pro, that I use to
> create a
> structure like so,
> x = {mystruct}
> is there any way to obtain the structure name (apart from using "HELP,
> /STRUCTURE, x") ?
>
> Thanks,
>
> paulv
>

Is this what you need?

Result = TAG_NAMES( Expression [,/STRUCTURE_NAME] )

Ken Bowman
Re: obtaining a structure's name [message #41080 is a reply to message #41079] Wed, 22 September 2004 11:01 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Paul Van Delst" <paul.vandelst@noaa.gov> wrote in message news:cisfgr$nn1$1@news.nems.noaa.gov...
> Hello,
>
> Apologies if this is a brain-dead question, but perusal of the IDL help was unsatisfactory
> (and I couldn't find the required information :o) Ehem..
>
> If I have a structure definition routine, mystruct__define.pro, that I use to create a
> structure like so,
> x = {mystruct}
> is there any way to obtain the structure name (apart from using "HELP, /STRUCTURE, x") ?
>
> Thanks,
>
> paulv

Apology accepted :)

print,tag_names(x,/structure_name)

Cheers,
bob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: obtaining a structure's name
Next Topic: Going outside the interger limits

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

Current Time: Fri Oct 10 22:44:14 PDT 2025

Total time taken to generate the page: 0.64263 seconds