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

Home » Public Forums » archive » how to pass a parameter to a .sav routine??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to pass a parameter to a .sav routine?? [message #30014] Wed, 27 March 2002 16:55
aqueous0123 is currently offline  aqueous0123
Messages: 11
Registered: September 2001
Junior Member
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.
tia
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Evaluation versions for dlm testing
Next Topic: launching executables from idl

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

Current Time: Sat Oct 11 08:57:45 PDT 2025

Total time taken to generate the page: 0.39720 seconds