keyInField
Klaus Major
klaus.major at metascape.org
Thu Sep 26 07:42:01 EDT 2002
Hi Bob,
> Appreciate any suggestions that would replace the following script,
> that I used in SuperCard, to one in Revolution. Want to enter only
> certain chars into a field.
>
> on openField
> set the numberFormat to "0.000"
> keyInField theKey
> add 0 to me
> end openField
Sorry, i am not ure about this script...
> on keyInField theKey
> set allowKeyInField to true
> if theKey is in "0123456789." or charToNum(theKey) = 8 then pass
> keyInField
> end keyInField
should read:
on keydown theKey
if theKey is in "0123456789." or charToNum(theKey) = 8 then pass
keydown
end keydown
> Regards ... Bob
It's only half the rent, but may help anyway ;-)
Regards
Klaus Major
klaus.major at metascape.org
More information about the use-livecode
mailing list