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

Home » Public Forums » archive » Re: how to pass a parameter to a .sav routine??
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: how to pass a parameter to a .sav routine?? [message #30009 is a reply to message #30004] Wed, 27 March 2002 17:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
aqueous (aqueous0123@yahoo.com) writes:

> pro saveTest, str
> if(n_elements(str) eq 0) then $
> r=dialog_message("No string pased, hi anyway", /INFO) $
> else $
> r=dialog_message(str, /INFO)
> end
>
> compile and run. Then:
>
> save, /routines, filename="saveTest.sav"
>
> exit idl
>
> At command window, how do you do the runtime passing the parameter??
> At IDL command line, I can just type saveTest, "Hello World!" and the
> pro runs with message "Hello World!", but I've tried things like
>
> idl -rt=saveTest.sav , "Hello World!"
>
> doesn't work. Would it be different if it were a function instead of
> procedure? Please help.

The problem with run-time IDL is there ain't nowhere
to pass the parameter *from*. :-(

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: launching executables from idl
Next Topic: idlde on mswin vs unix

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

Current Time: Fri Oct 10 13:41:19 PDT 2025

Total time taken to generate the page: 0.72006 seconds