Shut down request.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Shut down request.
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.
hi xApple,
You're right. I am a little surprised that using shutdown as a command doesn't cause an error message. The right command to use here is "quit". Stuart, make sure that the pocess doesn't remain in Windows' Task Manager after executing the quit command.
Best,
Mark
You're right. I am a little surprised that using shutdown as a command doesn't cause an error message. The right command to use here is "quit". Stuart, make sure that the pocess doesn't remain in Windows' Task Manager after executing the quit command.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode