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

Home » Public Forums » archive » Re: Scope_VarFetch Bug or Feature?
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: Scope_VarFetch Bug or Feature? [message #47505 is a reply to message #47504] Tue, 14 February 2006 14:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
=?ISO-8859-2?Q?F=D6LDY_Lajos?= writes:

> well, you can check it first:
>
> help, out=s, (Scope_VarFetch(names[j], Level=1, /Enter))
> if strpos(s, 'UNDEFINED =') gt 0 then print, 'Undefined'
>
> (you can't retrieve an undefined variable, but you can get a
> reference to it :-)
>
> And I think the ENTER keyword works, it just creates an undefined
> variable :-) You can create a defined variable by
>
> (Scope_VarFetch('something_new', Level=1, /Enter))=0

Ah, now all that screwy parentheses stuff I remember from
a couple of months ago when I first starting looking at
SCOPE_VARFETCH is starting to make some sense to me! :-)

Thanks guys.

Cheers,

David

P.S. Let's just say we were burning about $1000/hour with
a room full of Ph.D. physicists trying to figure it out from
the documentation earlier today, to no avail. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [OT] english and spanish; was: Leer archivos ASCII
Next Topic: XYOUTS Decimal format

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

Current Time: Fri Oct 10 10:24:45 PDT 2025

Total time taken to generate the page: 0.87955 seconds