Re: Attempt to subscript FILNAM with I is out of range.... [message #31818 is a reply to message #31728] |
Fri, 16 August 2002 17:07  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Timm Weitkamp <timm.weitkamp@psi.ch> writes:
> Kolbjorn,
>
> Following Craig's suggestion is definitely the easiest (and cleanest) way,
> but I think his script "run_myfile.pro" should be extended by one line
> that will make all the difference:
>
> .run myfile.pro ; compile the routine(s) contained in myfile.pro
> myfile ; run procedure myfile (if that's what is in myfile.pro)
> exit ; quit IDL
Right, I missed that "PRO" at the top of his file.
Of course, because he was running the file like an "@" script, the PRO
statement was ignored, and the rest of the commands were simply
executed.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|