Adding numbers

Sarah Reichelt sarahr at genesearch.com.au
Tue Dec 11 18:38:01 EST 2001


Don't forget to allow backspace, delete and perhaps return. You might need
to use rawKeyDown instead and check the ASCII value of each key pressed.

Cheers,
Sarah

> 
> Sometimes (mostly) I find it best to prevent a non-number input
> rather than complain about it later. Put the following script into a
> field that you want the user to enter a number into:
> 
> on keyDown theKey
> if theKey is in "1234567890-." then pass keyDown
> end keyDown
> 
> -- 
> Michael J. Lew
> 
> Senior Lecturer
> Department of Pharmacology
> The University of Melbourne
> Parkville 3010
> Victoria
> Australia
> 
> Phone +613 8344 8304
> 
> **
> New email address: michaell at unimelb.edu.au
> **
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 




More information about the use-livecode mailing list