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 #11650 is a reply to message #11647] Wed, 20 May 1998 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Martin Fuhrer wrote:
>
> Hi idl experts
[...]
> 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: ...
>

Since you named your "keyword" kwd1, I have the suspicion that you
actually want to pass a keyword to EM, not a parameter. As Reimar
noted, it will probably be a matter of the definition of EM. My guess is

pro em,kwd1=kwd1

Then you will have to pass kwd1 as

em,kwd1=kwd1 *not* em,kwd1

I would recommend the online documentation: section on parameter passing
and keywords.

Martin.

--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[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: Fri Oct 10 03:43:09 PDT 2025

Total time taken to generate the page: 0.71943 seconds