Ask/Cancel in iOS

2012-02-03 Thread 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?

Thanks in advance,
Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Klaus on-rev
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
kl...@major.on-rev.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Dan Friedman
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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Bob Sneidar
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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Chris Sheffield
There's still a problem though if the user leaves the field empty but still 
taps OK. In that case, as Dan is saying, the result returns cancel, which is 
not correct.

I could be wrong, but it seems like this was brought up not too long ago and 
submitted as a bug. I believe the result should return empty if the user clicks 
on OK. I'll see if I can find it in the QCC.

Chris

--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com

On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:

 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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Chris Sheffield
Yes. Issue #9970. It has been confirmed. All we can do is wait for a fix. Not 
sure if there's any kind of workaround or not.

Chris


On Feb 3, 2012, at 3:11 PM, Chris Sheffield wrote:

 There's still a problem though if the user leaves the field empty but still 
 taps OK. In that case, as Dan is saying, the result returns cancel, which 
 is not correct.
 
 I could be wrong, but it seems like this was brought up not too long ago and 
 submitted as a bug. I believe the result should return empty if the user 
 clicks on OK. I'll see if I can find it in the QCC.
 
 Chris
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.com
 
 On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:
 
 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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Bob Sneidar
This is not true. I just tested this scenario and the result is empty.

Bob


On Feb 3, 2012, at 2:11 PM, Chris Sheffield wrote:

 There's still a problem though if the user leaves the field empty but still 
 taps OK. In that case, as Dan is saying, the result returns cancel, which 
 is not correct.
 
 I could be wrong, but it seems like this was brought up not too long ago and 
 submitted as a bug. I believe the result should return empty if the user 
 clicks on OK. I'll see if I can find it in the QCC.
 
 Chris
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.com
 
 On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:
 
 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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Bob Sneidar
Non issue. It doesn't work that way. Perhaps they fixed it already? I am 
running 5.02. 

Bob


On Feb 3, 2012, at 2:17 PM, Chris Sheffield wrote:

 Yes. Issue #9970. It has been confirmed. All we can do is wait for a fix. Not 
 sure if there's any kind of workaround or not.
 
 Chris
 
 
 On Feb 3, 2012, at 3:11 PM, Chris Sheffield wrote:
 
 There's still a problem though if the user leaves the field empty but still 
 taps OK. In that case, as Dan is saying, the result returns cancel, which 
 is not correct.
 
 I could be wrong, but it seems like this was brought up not too long ago and 
 submitted as a bug. I believe the result should return empty if the user 
 clicks on OK. I'll see if I can find it in the QCC.
 
 Chris
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.com
 
 On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:
 
 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
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Chris Sheffield
Desktop or iOS? The bug ticket states it's specific to iOS.


On Feb 3, 2012, at 3:37 PM, Bob Sneidar wrote:

 This is not true. I just tested this scenario and the result is empty.
 
 Bob
 
 
 On Feb 3, 2012, at 2:11 PM, Chris Sheffield wrote:
 
 There's still a problem though if the user leaves the field empty but still 
 taps OK. In that case, as Dan is saying, the result returns cancel, which 
 is not correct.
 
 I could be wrong, but it seems like this was brought up not too long ago and 
 submitted as a bug. I believe the result should return empty if the user 
 clicks on OK. I'll see if I can find it in the QCC.
 
 Chris
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.com
 
 On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:
 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Ask/Cancel in iOS

2012-02-03 Thread Bob Sneidar
OIC my bad. Only tested it on a desktop. How odd that the iOS works 
differently! That is unsettling. 

Bob


On Feb 3, 2012, at 2:40 PM, Chris Sheffield wrote:

 Desktop or iOS? The bug ticket states it's specific to iOS.
 
 
 On Feb 3, 2012, at 3:37 PM, Bob Sneidar wrote:
 
 This is not true. I just tested this scenario and the result is empty.
 
 Bob
 
 
 On Feb 3, 2012, at 2:11 PM, Chris Sheffield wrote:
 
 There's still a problem though if the user leaves the field empty but still 
 taps OK. In that case, as Dan is saying, the result returns cancel, which 
 is not correct.
 
 I could be wrong, but it seems like this was brought up not too long ago 
 and submitted as a bug. I believe the result should return empty if the 
 user clicks on OK. I'll see if I can find it in the QCC.
 
 Chris
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.com
 
 On Feb 3, 2012, at 3:07 PM, Bob Sneidar wrote:
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode