Re: What is wrong with this Script logic?

2013-01-11 Thread J. Landman Gay
On 1/11/13 8:16 AM, Ben Rubinstein wrote: On 11/01/2013 06:21, Mark Wieder wrote: Jacque- Thursday, January 10, 2013, 9:39:35 PM, you wrote: Something's wrong. I think it's the dialog. My guess is that closeField keeps getting triggered. It's definitely related to closeField, but there's

Re: What is wrong with this Script logic?

2013-01-11 Thread J. Landman Gay
On 1/11/13 12:21 AM, Mark Wieder wrote: Jacque- Thursday, January 10, 2013, 9:39:35 PM, you wrote: Something's wrong. I think it's the dialog. My guess is that closeField keeps getting triggered. Except I put my closefield handler into the field itself. That shouldn't catch any closefiel

Re: What is wrong with this Script logic?

2013-01-11 Thread Robert Brenstein
On 11.01.2013 at 11:04 Uhr +0800 Kay C Lan apparently wrote: If I turn Debug Mode OFF, and repeat the above, after I enter B in my ask Dialog I get the IDE Errors widow come up with: Type: Handler: can't find handler Object: fldTest Line: hCheckEntry tAnswer Hint: hCheckEntry My Ask Dialog Box

Re: What is wrong with this Script logic?

2013-01-11 Thread Robert Brenstein
On 11.01.2013 at 17:03 Uhr +0800 Kay C Lan apparently wrote: Actually I just went with the simple example from the dictionary: on closeField if (the text of me is not an integer) then answer "Please enter only whole numbers!" titled "Enter A Number" select the text of me end if

Re: What is wrong with this Script logic?

2013-01-11 Thread Ben Rubinstein
On 11/01/2013 06:21, Mark Wieder wrote: Jacque- Thursday, January 10, 2013, 9:39:35 PM, you wrote: Something's wrong. I think it's the dialog. My guess is that closeField keeps getting triggered. It's definitely related to closeField, but there's some interaction with the dialog as well.

Re: What is wrong with this Script logic?

2013-01-11 Thread Peter M. Brigham
I tried this: on closefield put "closefield" && the seconds & cr after message hCheckEntry me end closefield on exitfield put "exitfield" && the seconds & cr after message end exitfield on enterinfield select empty end enterinfield on hCheckEntry pData if pData is an integer then

Re: What is wrong with this Script logic?

2013-01-11 Thread Kay C Lan
Actually I just went with the simple example from the dictionary: on closeField if (the text of me is not an integer) then answer "Please enter only whole numbers!" titled "Enter A Number" select the text of me end if end closeField Still, I do not understand why the IDE is beha

Re: What is wrong with this Script logic?

2013-01-11 Thread Phil Davis
So don't use closeField. on keyDown pKey -- or keyUp if pKey is an integer then pass keyDown else answer "Please enter only whole numbers!" -- or you could "beep" end keyDown Phil Davis On 1/10/13 10:21 PM, Mark Wieder wrote: Jacque- Thursday, January 10, 2013, 9:39:35 PM, you wr

Re: What is wrong with this Script logic?

2013-01-10 Thread Mark Wieder
Jacque- Thursday, January 10, 2013, 9:39:35 PM, you wrote: > Something's wrong. I think it's the dialog. My guess is that closeField keeps getting triggered. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.r

Re: What is wrong with this Script logic?

2013-01-10 Thread J. Landman Gay
It isn't really hung, you can command-period to abort the infinite loop. But still. Hm. It locks up for me too, and it didn't used to. Not only that, but if I abort the script I still get a final dialog, and if I hit Cancel in that one, I get the same odd results you do -- part of the script g

Re: What is wrong with this Script logic?

2013-01-10 Thread Kay C Lan
Jacque, Actuallly this doesn't work for me either. LC locks up, my CPUs go to 100% and I don't even get a recursion message or anything. I have to Force Quit LC. Any further suggestions? On Fri, Jan 11, 2013 at 11:43 AM, J. Landman Gay wrote: > on hCheckEntry pData > repeat until pData is an

Re: What is wrong with this Script logic?

2013-01-10 Thread Kay C Lan
On Fri, Jan 11, 2013 at 11:43 AM, J. Landman Gay wrote: > > Mostly what I wanted to say is that usually I avoid the whole issue like > this: > > on hCheckEntry pData > repeat until pData is an integer > > ask warning "Please enter only whole numbers!" with pData \ >titled "Enter A Nu

Re: What is wrong with this Script logic?

2013-01-10 Thread dunbarx
calling line in the closeField handler. Pass it by when it comes up. The recursion goes away. Craig Newman -Original Message- From: Kay C Lan To: How to use LiveCode Sent: Thu, Jan 10, 2013 10:04 pm Subject: What is wrong with this Script logic? What is wrong with this Script logic

Re: What is wrong with this Script logic?

2013-01-10 Thread J. Landman Gay
cancel" then exit to top put it into pData end repeat put pData into me end hCheckEntry On 1/10/13 9:04 PM, Kay C Lan wrote: What is wrong with this Script logic? I've been staring at this too long and can't figure out what's wrong. 1) New Main Stack 2) Add 1 plain fiel

What is wrong with this Script logic?

2013-01-10 Thread Kay C Lan
What is wrong with this Script logic? I've been staring at this too long and can't figure out what's wrong. 1) New Main Stack 2) Add 1 plain field 3) Set the flds Script to: on closeField hCheckEntry me end closeField on hCheckEntry pData if (pData is not an integer) the