| Author |
Message |
theartist
Joined: 21 Feb 2007 Posts: 4
|
Posted: February 21, 2007 8:33 PM Post subject: I need help with nested programs |
|
|
I need help putting a program within a program (referring it to another program) Please respond soon!
--Ben |
|
| Back to top |
|
 |
mark
Joined: 24 Feb 2007 Posts: 27
|
Posted: February 25, 2007 5:23 PM Post subject: |
|
|
the program that is being referred to has to have one or more variables separated by commas within the "()" after the name of of the program
you can then refer to that program by going to catalog, user defined, then pick your program
example:
say this is your main program
:input"y",y
:myfolder\myprogram(y)
:disp x
"x would come from the other program"
i think there is a way to have the nested program return its answer directly to the main program, but i don't know how to do the syntax for it
i also have a question about this, can you use "return" for this? and how would you do that |
|
| Back to top |
|
 |
theartist
Joined: 21 Feb 2007 Posts: 4
|
Posted: March 23, 2007 3:44 PM Post subject: |
|
|
tHanks....but we need more. i figured out how to do what i wanted anyyway...
--Ben |
|
| Back to top |
|
 |
|