slowness of "on keyUp" script
Dr. Hawkins
dochawk at gmail.com
Sun Jul 1 12:14:07 EDT 2012
I' surprised at how slow this is--I can type fast enough to foul it.
American social security numbers have nine digits, with a dash after
the third and fifth.
I attached this to a field to handle it automatically
on keyUp theKey
if the length of me = 3 or the length of me=6 then put "-" after me
if theKey is among the chars of "0123456789" then
pass keyup
else
beep
end if
end keyUp
If I blast a bunch of numbers on the keyboard at once, I get extra
numbers before the hyphens: right now it shows 873124-6758021394
--
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
HawkinsLawFirm at gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV 89109
More information about the use-livecode
mailing list