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

Home » Public Forums » archive » Re: HELP: Multiple-file Applications
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: HELP: Multiple-file Applications [message #3205 is a reply to message #3204] Tue, 06 December 1994 13:00 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
In article <3c04j4$pap@canopus.cc.umanitoba.ca> djackson@ibd.nrc.ca (Dick Jackson) writes:
> From: djackson@ibd.nrc.ca (Dick Jackson)
> Subject: Re: HELP: Multiple-file Applications
> Date: 5 Dec 1994 22:35:16 GMT

>> Problems:
>> - I don't see any way for an IDL routine to cause a file to be compiled
>> (e.g. OK = EXECUTE(".RUN foo.pro") does not work)

> Just to clarify, I want the compilation to be done somewhere at
> run-time, say when a user selects a given menu item. Note that the '@'
> command to include a file doesn't do this, it just includes another
> file as part of the current file.

> -Dick

> Dick Jackson djackson@ibd.nrc.ca Institute for Biodiagnostics
> Opinions are mine alone. National Research Council Canada, Winnipeg

I played a little with CALL_PROCEDURE and it seems to do what you like.
I wrote
sub = 'fader'
and typed
call_procedure, sub, out=0.25

and noticed that fader.pro was found in the search path, compiled and
executed.

Note that IDL only compiles those procedure that haven't been compiled
before in this session

and

that IDL only compiles the file including all procedure contained there
*until* it has reached the END statement of the procedure requested.

Thus, if you have nested procedures, it is best to put the outermost
procedure (that's the one you call explicitly) at the end of the file.

One exception to this: .run always compiles the entire file.

Hope this helps
Norbert Hahn
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help with clipping in IDL V3.0
Next Topic: Pointers to arrays in widget programs (PV-Wave and IDL)

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

Current Time: Wed Oct 08 19:13:34 PDT 2025

Total time taken to generate the page: 0.00422 seconds