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

Home » Public Forums » archive » Assigning structure tag names from variables?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Assigning structure tag names from variables? [message #43000] Mon, 14 March 2005 11:39 Go to previous message
Jonathan Greenberg is currently offline  Jonathan Greenberg
Messages: 91
Registered: November 2002
Member
Is there any way to use a variable as the name of a structure tag? For
instance:

tagnamevar='mytagname'
somedata=1.2
structurename={tagnamevar:somedata}
print,tag_names(structurename)

Returns, as you IDL'ers know,
TAGNAMEVAR and not MYTAGNAME

Thoughts?

--j
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Assigning structure tag names from variables?
Next Topic: Re: Forcing READ_ASCII output to be a set of strings...

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

Current Time: Mon Apr 13 15:47:21 PDT 2026

Total time taken to generate the page: 1.68410 seconds