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

Home » Public Forums » archive » Declaring large vectors in IDL
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: Declaring large vectors in IDL [message #70537 is a reply to message #70493] Tue, 20 April 2010 15:34 Go to previous messageGo to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
> I haven't been following much of this discussion, but if you
> want these variables defined back at the main IDL level,
> you might try using SaveToMain after you create them:
>
>   http://www.dfanning.com/programs/savetomain.pro
>

Great! I guess Scope_VarFetch is the function I was looking for. This
solves my problem:

pro test
heads=['a', 'b', 'c']
data = ['1 2 3', '4 5 6', '7 8 9']
for i=0,2 do (Scope_VarFetch(heads[i], LEVEL=1, /ENTER)) =
strsplit(data[i],/extract)
end

Thanks, David.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with variable declaration
Next Topic: Rounding off

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

Current Time: Sat Oct 11 07:09:51 PDT 2025

Total time taken to generate the page: 1.12311 seconds