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

Home » Public Forums » archive » Defining structuretype during runtime?? QUESTION!! (no reply)
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: Defining structuretype during runtime?? QUESTION!! (no reply) [message #10045 is a reply to message #4955] Mon, 06 October 1997 00:00 Go to previous messageGo to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Norbert Hahn wrote:
>
> Juergen Paff <paff@paff.slip.ethz.ch> wrote:
> [...snip...]
>> 2) As you learn (name and) type only at run time, you might want to use the
>> command
>
>> return_status=execute(string_argument)
>
>> string_argument has to be a string that conains a command that is valid at
>> run time. Consider the following situation:
> [...snip...]
> Ahem, but look at this warning included in the help for execute:
> *** begin of quote ***
> "Warning
>
> "Do not use EXECUTE to create new variables inside procedures or functions. All
> variables used by the string that is executed should be
> referenced or defined when the program unit is originally compiled. New
> variables cannot be created after a procedure or function is
> compiled. Attempts to create new variables result in the error "Program data
> area full".
> *** end of quote ***

That's true, but you can undefine variables before whith
a=n_elements(unknown)

help,unknown
UNKOWN UNDEFINED = <Undefined>

Undefined variables could be used by execute, since idl3.6.1 !


--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Named and Anonymous structures ?
Next Topic: wavelet spectra help

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

Current Time: Wed Oct 08 17:11:03 PDT 2025

Total time taken to generate the page: 0.00449 seconds