Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > IDL > Running a proc ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 165 of 228
Post > Topic >>

Running a proc from inside a proc

by pmw <blah@[EMAIL PROTECTED] > Dec 8, 2006 at 03:20 PM

Hello,

Having a little problem, but maybe I'm not thinking 'outside the box' 
enough.

I want to run a procedure in a procedure, but I want to input a variable 
(filename), I don't want to have to rewrite the procedure each time. In 
my particular case, I have a procedure which produces a plot (say, 
plotproc.pro). Sometimes I'll want a hardcopy of that plot, so I have 
another program (@[EMAIL PROTECTED]
) which will call plotproc and give me a PS 
hardcopy of the plot. However, inside @[EMAIL PROTECTED]
 I have a .run statement, 
but that only takes the exact name of the procedure. I can't, for 
instance, say:

thisproc = 'plotproc'
..run thisproc

because .run won't translate 'thisproc' into 'plotproc'. I don't want to 
be editing @[EMAIL PROTECTED]
 all the time, to change the argument of the .run 
statement.

Does anyone have any genius ideas?

Thanks.
 




 9 Posts in Topic:
Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-08 15:20:30 
Re: Running a proc from inside a proc
"Toylas" <tu  2006-12-10 19:41:50 
Re: Running a proc from inside a script!
pmw <blah@[EMAIL PROTE  2006-12-11 10:48:21 
Re: Running a proc from inside a proc
"Jean H." <j  2006-12-11 10:14:39 
Re: Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-11 10:49:54 
Re: Running a proc from inside a proc
"Jean H." <j  2006-12-12 10:54:55 
Re: Running a proc from inside a proc
pmw <blah@[EMAIL PROTE  2006-12-12 11:43:27 
Re: Running a proc from inside a script!
"kelle" <kel  2006-12-12 05:05:09 
Re: Running a proc from inside a script!
pmw <blah@[EMAIL PROTE  2006-12-12 09:55:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 22:10:07 CDT 2008.