In the code below, I define the symbol "drawCommand" to draw a white square with a black border and then a symbol "printCommand" to print a value. These work as expected until put inside a Do loop. Then the printCommand executes but drawCommand doesn't. The output can be seen in the attached .pdf file.
Can anyone tell me how to get this to work?
Much obliged, larry.c
border = Rectangle[{-1, -1}, {1, 1}];
drawCommand := Graphics[{EdgeForm[Thick], White, border}];
drawCommand
timeValue = "global value";
printCommand := Print[" timeValue = ", timeValue ];
printCommand
Print["Begin Loop"];
Do[drawCommand; printCommand , {timeValue , 0, 01., .2}]
Print["End Loop"];
drawCommand
printCommand
Attachments: