Re: ASK dialog box

2015-11-25 Thread Randy Hengst
This is what I was looking for. And, I did read the dictionary before I wrote… but, didn’t really “see” the reference to “the result” as separate from “it.” Thanks to all. be well, randy Randy Hengst www.classroomFocusedSoftware.com > On Nov 25, 2015, at 11:40 AM, Peter Haworth wrote: > > i

Re: ASK dialog box

2015-11-25 Thread Peter Haworth
if the result is "Cancel" then Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Nov 25, 2015 at 9:17 AM, Randy Hengst wrote: > Hi Klauss, > > Yes, I did find that Can

Re: ASK dialog box

2015-11-25 Thread Peter M. Brigham
If something is entered and the field contains text and the user clicked "OK" then it = and the result = empty if user enters text then clicks "cancel" then it = empty and the result = "cancel" if user doesn't enter text and the field is empty and then clicks "OK" then it = empty and

Re: ASK dialog box

2015-11-25 Thread Lyn Teyla
Hi Randy, As Klaus mentioned, when the 'Cancel' button is pressed, not only is "it" set to empty, but "the result" is also set to "Cancel". If the user leaves the dialog blank by pressed 'OK', then both "it" and "the result" are set to empty. - on mouseUp ask "Are you a bunny?" if t

Re: ASK dialog box

2015-11-25 Thread Scott Rossi
Hi Randy: Klaus is right -- you should only need to test for "cancel" in the result. If you don't receive that, any other value, including empty, is a valid user choice. You probably already know you can "ask..." with a preset value, so you could also compare against an expected result. Rega

Re: ASK dialog box

2015-11-25 Thread Roland Huettmann
Dear Randy Maybe the obvious is sometimes not so obvious when starting. And even following the discussions on this board, with all those acronyms, many users - also me - are sometimes lost guessing around what this or that could mean. It is very simple in LiveCode catching the Ask box: The code

Re: ASK dialog box

2015-11-25 Thread Randy Hengst
Hi Klauss, Yes, I did find that Cancel put EMPTY into it. The catch is, so does selecting OK when the user leaves the dialog empty. I’d like to respond in different ways depending on the user selecting Cancel versus OK. I can’t find a way to trap for which button is pressed since in both cases

Re: ASK dialog box

2015-11-24 Thread Klaus major-k
Hi Randy, > Am 24.11.2015 um 18:44 schrieb Randy Hengst : > > Hi All, > > I’ve include an ASK command in a new app. > > It was my understanding (though I don’t see this in the dictionary) that > “Cancel” is placed in the “it” variable when the user selects “Cancel." > However, the “it” variab