PDA

View Full Version : hmm cant loop inside Window; command?


Toxinhead
09-19-2009, 03:43 AM
Hey
Does anyone know why i cannot execute a while loop inside a Window command? Am very knew to Mel scripting :)


$starter=0;
$error_num=5;

string $error_window = `window -t "oops"
-widthHeight 400 700`;
columnLayout -adjustableColumn true;
while($starter<=$error_num){
text -label "You have not added a "+$error_details[$starter]+" curve";
$starter++;
}
button -label "close" -command("deleteUI -window "+$error_window);
showWindow $error_window;

// Error: text -label "You have not added a "+$error_details[$starter]+" curve";
// Error: Line 29.37: Syntax error //

Thanks

JayG
09-19-2009, 05:34 AM
text -label ("You have not added a "+$error_details[$starter]+" curve") ;

Try that, your syntax error is in that line.

Toxinhead
09-20-2009, 12:15 AM
hmm still didnt work? but got around it using a different technique
Thanks for help!

CGTalk Moderation
09-20-2009, 12:15 AM
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.