Shut down request.
Posted: Sat Feb 03, 2007 12:18 am
Why doesn't this code work?
on mouseUp
answer "What would you like to do?" with "Cancel" or "Exit exam completely" or "Grade exam"
if it = "Grade exam"
then go to card Exit1
else
if it = "Exit exam completely"
then shutdown
end if
end mouseUp
The shutdown command is something I understand what I want it to do, but can't get the code to work. If I have three buttons on my popup as you can see in my "answer" portion is there an need to code the "cancel" button. it seems in my testing that upon selecting it that the dialog box dissappears anyway. I want my students to upon selecting "Exit exam completely" to have the program dissapear so to speak. No saving, just done.
on mouseUp
answer "What would you like to do?" with "Cancel" or "Exit exam completely" or "Grade exam"
if it = "Grade exam"
then go to card Exit1
else
if it = "Exit exam completely"
then shutdown
end if
end mouseUp
The shutdown command is something I understand what I want it to do, but can't get the code to work. If I have three buttons on my popup as you can see in my "answer" portion is there an need to code the "cancel" button. it seems in my testing that upon selecting it that the dialog box dissappears anyway. I want my students to upon selecting "Exit exam completely" to have the program dissapear so to speak. No saving, just done.