|
Re: evaluating & executing commands [message #15238 is a reply to message #15237] |
Fri, 07 May 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Waleed Al-Nuaimy (assuming his Steve Mead identity) writes:
> Is there a way to have IDL execute a command held within a string
> variable from within a procedure?
IDL> commandString = 'a = 40'
IDL> ok = Execute(commandString)
IDL> Print, a
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|