View Full Version : Nested Procedures & Function

09 September 2007, 04:23 PM

Q1 . How nested Procedures and Nested Functions are written in MEL ?

Q2. How multiple commands can be given on the button click action ?



09 September 2007, 07:39 PM
Procedures can't be nested in mel, kinda stinks, but you can always do it non nested-

proc printer(string $printThis){
print $printThis;

proc runner(){
string $printThis;
for($x=0; $x<=10; ++$x){
$printThis=("Printing "+$x+"\n");


For buttons, you can put the processes of the commands you want to run before or after the code for the window and for the button -

button -command "proc1();proc2();runner();";

That will run all of the procs you want to run.

Hope this helps at all

CGTalk Moderation
09 September 2007, 07:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.