|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
A nagging problem with controlling data entryI have run into a nagging problem with controlling data entry by the user. I used the following code to limit input to three numbers:
on keyDown pkey if pKey is in "1234567890" and the number of chars of target <4 then pass keydown end keyDown I also use the following script in the sext entry field to make sure that the user enters a score of 90 or higher: on exitField if field "score" < 90 then answer information "The total score must be 90 or higher before a computation can be completed." focus on field "ach" delete the selection end if end exitField The problem arises when I am testing the program. It will provide a dialog when a number less than 90 is entered in the text field as expected. But sometimes it will NOT let me enter a number or go to the next field! I have tried deleting the focus and the selection from the code but that did not work either. On several occasions, I have to force quit Rev because changing from browse to edit mode did not solve the problem. I am using Rev 2.9 on a Mac. I have autoTab checked. The field is not locked. Is there a better code to check for numeric entry and monitor the entry of certain values in a text entry field? |
|
|
Re: A nagging problem with controlling data entry> I am using Rev 2.9 on a Mac. I have autoTab checked. The field is not > locked. Is there a better code to check for numeric entry and monitor the > entry of certain values in a text entry field? I would recommend using a "send in time" command - gives the 'exitField'/'closeField' time to complete before the dialog is displayed. BTW, 'exitField' is sent only when there are NO changes in the field; 'closeField' is sent when there ARE changes, so that's the one you probably want to trap. Anyway, here's what I mean: on exitField if field "score" < 90 then send "TooLow" to me in 20 milliseconds end if end exitField on TooLow answer information "The total score must be 90 or higher before a computation can be completed." focus on field "ach" delete the selection end TooLow Ken Ray Sons of Thunder Software, Inc. Email: kray@... Web Site: http://www.sonsothunder.com/ _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: A nagging problem with controlling data entryHi Charles,
Is this what you are experiencing: <http://quality.runrev.com/qacenter/show_bug.cgi?id=6056> If so, please add your story to the bug entry. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info. On 18 jul 2008, at 04:02, Charles Szasz wrote: > > I have run into a nagging problem with controlling data entry by the > user. I > used the following code to limit input to three numbers: > > on keyDown pkey > if pKey is in "1234567890" and the number of chars of target <4 > then > pass keydown > end keyDown > > I also use the following script in the sext entry field to make sure > that > the user enters a score of 90 or higher: > > on exitField > if field "score" < 90 > then > answer information "The total score must be 90 or higher > before a > computation can be completed." > focus on field "ach" > delete the selection > end if > end exitField > > The problem arises when I am testing the program. It will provide a > dialog > when a number less than 90 is entered in the text field as expected. > But > sometimes it will NOT let me enter a number or go to the next > field! I have > tried deleting the focus and the selection from the code but that > did not > work either. > > On several occasions, I have to force quit Rev because changing from > browse > to edit mode did not solve the problem. > > I am using Rev 2.9 on a Mac. I have autoTab checked. The field is not > locked. Is there a better code to check for numeric entry and > monitor the > entry of certain values in a text entry field? _______________________________________________ use-revolution mailing list use-revolution@... Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution |
|
|
Re: A nagging problem with controlling data entryThanks Ken and Mark!
Mark, it is the same bug. I will vote for this bug to be fixed.\
|
| Free Forum Powered by Nabble | Forum Help |