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

Home » Public Forums » archive » Re: turn a string value into variable name
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: turn a string value into variable name [message #63028] Fri, 24 October 2008 06:08 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
That works, but wouldn't it be better to bring them into an array?
Otherwise you'll meet the same problem when you want to calculate
something with them..

scenario=ptrarr(n)
for i=0,n-1 do begin
...
scenario[i]=ptr_new(mySavedStruct)
endfor

...

DoSomething,*(scenario[j])

good luck,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Two new IDL Help Articles describing how to use the Workbench are made available now.
Next Topic: Re: meanclip

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

Current Time: Wed Oct 08 15:53:42 PDT 2025

Total time taken to generate the page: 0.00345 seconds