compiling procedures with keyword set [message #39691] |
Mon, 07 June 2004 07:46 |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
Hi all,
I have a widget program called 'sm_gui' which can be run in a special
mode by setting the keyword '/display_only' (some GUI elements are left
out in this mode). Now I want to compile the program in this special
mode for use with the IDL virtual machine. I tried to write a wrapper
program which reads
PRO sm_gui_display_only
sm_gui, /display_only
END
and did
IDL> .compile sm_gui_display_only
IDL> resolve_all
IDL> save, /routines, filename='sm_gui.sav'
However, if I run sm_gui.sav in the IDL virtual machine, the program
runs in "full mode". What's wrong?
What I did for now is to set the keyword variable to 1 by hand in the
code for the compilation and set it back afterwards. That's obviously
not the nicest solution. Any hints?
Thanks,
Benjamin
|
|
|