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

Home » Public Forums » archive » getting/setting value of unknown tag of structure???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
getting/setting value of unknown tag of structure??? [message #7653] Wed, 18 December 1996 00:00 Go to previous message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Hello,

imagine the little program:

pro problem
read,mytagname,prompt="Enter Tagname: "
read,myvalue,prompt="This into it: "

mystruct=create_struct([mytagname,'test'],[myvalue,myvalue])

; this is easy and works
print,mystruct.test

; but how to get the myvalue via the first tagname?
print,mystruct.????

; ok, i can fetch it via tag_names:
thetagis=tag_names(mystruct)
thetagis=thetagis(0)

print,thetagis

; and my main problem is: how to set the unknown tag?

mystruct.???='THE NEW VALUE'

end



OK, any help needed...


Panther

PS: greetings to the housekeeper of wayward inodes...



--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
[Message index]
 
Read Message
Read Message
Previous Topic: SGI doesn't redraw
Next Topic: XGobi

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

Current Time: Thu Oct 09 20:00:55 PDT 2025

Total time taken to generate the page: 1.03880 seconds