Re: obtaining a structure's name [message #41078] |
Wed, 22 September 2004 11:35 |
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  |
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  |
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
|
|
|