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

Home » Public Forums » archive » Re: 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
Re: Q: Calling .PRO from a program [message #11661 is a reply to message #11660] Tue, 19 May 1998 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Martin Fuhrer wrote:

> 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


There is too much unknown.

How did you declare em.


pro em,in_var
end

or

pro em
end

or

;pro em,in_var
end



Only first definition will accept a submitted value.



--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Scroll bars in scalable draw widgets
Next Topic: Re: Insight and HDF files

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

Current Time: Thu Oct 09 20:46:46 PDT 2025

Total time taken to generate the page: 0.96119 seconds