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

Home » Public Forums » archive » Re: compiling procedures with keyword set
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: compiling procedures with keyword set [message #39690] Mon, 07 June 2004 08:19
David Fanning is currently offline  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/
[Message index]
 
Read Message
Previous Topic: compiling procedures with keyword set
Next Topic: Resizing and mouse event ???

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

Current Time: Sat Oct 11 15:43:41 PDT 2025

Total time taken to generate the page: 1.52142 seconds