Ask/Cancel in iOS

Klaus on-rev klaus at major.on-rev.com
Fri Feb 3 11:16:36 EST 2012


Hi Dan,

Am 03.02.2012 um 17:09 schrieb Dan Friedman:

> Greetings!
> 
> I am having a problem with the ask command in iOS.  If I do this:
> 
> 	ask password "Enter Something" titled "Anything"
> 
> and tap the "Cancel" button, the result is "cancel".  However, if I use the same line of code and enter nothing in the prompt field, then tap the "OK" button, the result still equals "cancel".  Seems like as long as the user response is empty, the result is "cancel".  How do you determine a empty response from a request to cancel?

check IT! :-)
...
ask password "Enter Something" titled "Anything"
if it = empty then
  # nothing entered, do your stuff here...
...

> Thanks in advance,
> Dan

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list