Trapping Cancel on Ask Dialogue

J. Landman Gay jacque at hyperactivesw.com
Mon Feb 22 23:39:19 EST 2010


RevList wrote:
> This will sound like a NewBee question, but I can't find the answer.
> 
> I want to trap when someone click on the Cancel button on a Ask Dialogue
> 
> 
> For example  Ask "How old are you?"
> 
> How do I know if someone click on the Cancel button. It is what they
> respond.

It's in "the result":

   if the result = "cancel" then...

This is mentioned in the dictionary under the "ask command" entry.

You can also check to see if "it" is empty, because both cancel and no 
response both blank out the "it" variable.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list