Limiting data entry in fields
J. Landman Gay
jacque at hyperactivesw.com
Mon Nov 29 16:44:31 CST 2010
On 11/29/10 4:27 PM, charles61 wrote:
> I have not thought of using "not in". I did not use "1234567890"
> because it does not limit decimals.
I think it should be "is in" instead of "is not in". As written, it will
allow any keys except numbers.
on keydown pKey
if (pKey is a number or pKey = ".") and len(me) < 3
then pass keydown
You don't have to worry about carriage returns, they aren't trapped by
keydown. Set the field's autotab to true if you want carriage returns to
tab out of the field.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode