how to leave

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
greggarcia
Posts: 33
Joined: Mon Apr 27, 2009 3:32 pm
Contact:

how to leave

Post by greggarcia » Thu May 07, 2009 7:08 pm

Hi again, i just want to know if it is possible have a command or a trick to stop the "answer" dialog without putting the instruction in each "answer" dialog, i have a scrip like this:

answer "17.- ¿Por qué naufragó el Titanic?" with "Porque se durmió el capitán" or "Porque choco con otro barco" or "Porque chocó contra un iceberg"
if it is "Porque chocó contra un iceberg" then
add 1 to ctotal
correctas
else
incorrectas
end if
answer "18.- ¿En qué países actuales vivieron los fenicios?" with "En Egipto y Arabia Saudita" or "En Siria y Líbano" or "En Israel y Palestina"
if it is "En Siria y Líbano" then
add 1 to ctotal
correctas
else
incorrectas
end if

end mouseUp

on correctas
add 1 to countergood
answer "respuesta correcta, vamos sigue adelante, llevas " && countergood && "correctas de un total de" && ctotal && "jugadas"
end correctas

on incorrectas
add 1 to counterbad
answer error "No, no no, la que sigue" && counterbad && "contestadas incorrectamente"
end incorrectas

Regards
Greg

grc
Posts: 13
Joined: Thu Apr 23, 2009 9:21 am

Post by grc » Thu May 07, 2009 10:50 pm

I've got into those situations and so far the best way I know of is to add this script to at least one of your questions:

Code: Select all

Answer "Question?" with "Answer" and "Cancel"
If it is "Cancel" then exit mouseUp #or whatever the handler is 

greggarcia
Posts: 33
Joined: Mon Apr 27, 2009 3:32 pm
Contact:

Post by greggarcia » Fri May 08, 2009 2:56 am

Thanks grc, i was thinking the same and i put in the code every 10 or 5 question, thanks a lot

Regards
Greg

Post Reply