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 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NVĀ 89109 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode