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
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
