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 #3206 is a reply to message #3204] Tue, 06 December 1994 03:06 Go to previous messageGo to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
Dick Jackson (djackson@ibd.nrc.ca) wrote:
: In article <3c04bp$pap@canopus.cc.umanitoba.ca>
: djackson@ibd.nrc.ca (Dick Jackson) writes:

: > 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 think that you are stuck here, as I understand it, executive commands
(those that start with a dot) can only be used at the command line or in
an include file at the top level, so even if the filename were a constant
you wouldn't be able to force compilation from within a routine or
program.

However if your code is a routine rather than a main program then you can
use CALL_PROCEDURE or CALL_FUNCTION to compile (if not already compiled)
and execute it (these are more efficient than EXECUTE).

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| "If all else fails--read the instructions!" | |
+----------------------------------------------------------- --+---------+
[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:25:27 PDT 2025

Total time taken to generate the page: 0.00478 seconds