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

Home » Public Forums » archive » Re: exporting widget variables to an IDL command line
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: exporting widget variables to an IDL command line [message #46765] Mon, 19 December 2005 23:14
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Lon Riesberg wrote:
> Does anyone know of a good way to get variable data out of a widget to
> an IDL command line?

Have a look at the SCOPE_* functions. To export a variable from a widget
program to the command line, you can do

(scope_varfetch(varname, /enter, level=1)) = internal_variable

where "varname" is the name the variable should have on the command
line. If you want to be sophisticated, you can check if that variable
already exists (to avoid overwriting) with something like

IF size(scope_varfetch(varname, level=1, /enter), /type) EQ 0 THEN ...


Good luck,
Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: exporting widget variables to an IDL command line
Next Topic: Re: Cursor in IDL under Mac OSX 10.4

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

Current Time: Wed Oct 08 15:39:33 PDT 2025

Total time taken to generate the page: 0.00612 seconds