Re: compiling procedures with keyword set [message #39690] |
Mon, 07 June 2004 08:19 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Benjamin Hornberger writes:
> 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?
Uh, saved the wrong filename. :-)
I think you want this:
IDL> .compile sm_gui_display_only
IDL> resolve_all
IDL> save, /routines, filename='sm_gui_display_only.sav'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|