IT contains the encrypted contents of what they entered. If they cancel, IT 
will be empty and The Result will contain "Cancel". It's kind of convoluted. 
It's all in the dictionary. I do this:

ask password "Please enter your password:"
if the result is "Cancel" then exit <handler>
put it into thePassword

Bob


On Feb 3, 2012, at 1:54 PM, Dan Friedman wrote:

> Klaus,
> 
> That doesn't tell me if they canceled or entered nothing.  Perhaps they want 
> to set their password to empty?  How do I know if they entered nothing, or 
> they hit "Cancel"?
> 
> 
>> Hi Dan,
>> 
>> check IT! :-)
>> ...
>> ask password "Enter Something" titled "Anything"
>> if it = empty then
>>  # nothing entered, do your stuff here...
>> ...
>> 
>> Best
>> 
>> Klaus
>> 
>> 
>>> 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?
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to