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

Home » Public Forums » archive » Q: Calling .PRO from a program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Q: Calling .PRO from a program [message #11662] Tue, 19 May 1998 00:00
Martin Fuhrer is currently offline  Martin Fuhrer
Messages: 3
Registered: April 1998
Junior Member
Hi idl experts
I'm running IDL V5.0.2 WIN32 under WIN95 and I am writing a
widget-based program. At some point my program calls another IDL program
with keywords and parameters stored in local variables. I expected the
program to behave like:
IDL> myDirectory = 'C:\RSI\myData'
IDL>ImageOut, myDirectory
but it won't!

For details see below:
..
If (cpy eq 0) Then Begin
kwd1 = 'HCOPY=0'
..
EndIf Else Begin
kwd1 = 'HCOPY=1'
..
EndElse
;call other idl program (EM.PRO) with keyword now
EM, kwd1
..

The program crashes then with the following message:
IDL>EM_GUI
%EM: Incorrect number of arguments.
%Execution halted at: ...

One of the grizzly facts is that I don't know where the error message is
coming from because in EM.PRO there is no such message implemented!

Help about the keyword reveals the follwing information:
IDL> help, kwd1
KWD1 STRING = 'HCOPY=0'

An hints or suggestions are very much appreciated by
martin.fuhrer@computer.org
[Message index]
 
Read Message
Previous Topic: pv-wave 6.2
Next Topic: pv-wave 6.2

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

Current Time: Sat Oct 11 12:41:41 PDT 2025

Total time taken to generate the page: 0.79906 seconds