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

Home » Public Forums » archive » Re: running an idl expression stored in a text string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: running an idl expression stored in a text string [message #34414] Thu, 06 March 2003 20:22
rmoss4 is currently offline  rmoss4
Messages: 21
Registered: October 2002
Junior Member
Jan Erling Staff wrote:
> Hi all
>
> I have the following question: If an expression is stored in a text
> string, is there any way one can make IDL execute it without first storing
> the expression in a .pro file and then running the file?
>
> Thanks,
> Jan
>

The EXECUTE command is one way:

IDL> expr = "b = findgen( 100 )" ;;; the expression
IDL> ok = EXECUTE( expr )
IDL> help,b
B FLOAT = Array[100]

Robert
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: running an idl expression stored in a text string
Next Topic: splashscreen

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

Current Time: Wed Oct 08 17:05:26 PDT 2025

Total time taken to generate the page: 0.00587 seconds