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

Home » Public Forums » archive » You can access Main Level 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
You can access Main Level Variables!!! [message #18584] Wed, 19 January 2000 00:00 Go to previous message
Michael Lefsky is currently offline  Michael Lefsky
Messages: 9
Registered: October 1999
Junior Member
So it turns out you can access main level variables- try this

create this function:

function fetch,string
var=routine_names(/fetch,string)
help,var
return,var
end

then

dummy="hello"

print,fetch("dummy")
VAR STRING = 'hello'
hello

So one could do what I want- create a new "foolproof" save command. Now
if we just had a way of executing statements as if they were type at the
main level.

Michael Lefsky, PhD

Research Ecologist
U.S. Forest Service
Forest Sciences Laboratory
Corvallis, OR
lefsky@fsl.orst.edu
http://www.fsl.orst.edu/~lefsky
[Message index]
 
Read Message
Read Message
Previous Topic: IDL Shareware
Next Topic: Re: INT_TABULATED Errors

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

Current Time: Sat Nov 29 06:30:30 PST 2025

Total time taken to generate the page: 1.44033 seconds