Limiting data entry in fields
bonnmike at gmail.com
Mon Nov 29 16:21:06 CST 2010
Is there a reason to use 'not in "1234567890"' rather than 'is a number'
just curious to know.
On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <andrew at rjdfarm.com> wrote:
> Inside of the field script put something like this:
> on keyDown pKey
> put the number of chars of me into sCount
> if sCount < 3 then
> if pKey is not in "1234567890" then
> pass keyDown
> end if
> end if
> end keyDown
> This should make it so that everytime a key is pressed in that field it
> counts how many characters it has, if it is less than 3 it checks to see if
> it is a number or in the allowed list, if so it passes that key.
> View this message in context:
> Sent from the Revolution - User mailing list archive at Nabble.com.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode