Page 1 of 1
How do I limit amount of characters in a field?
Posted: Tue Jun 05, 2012 7:30 pm
by shawnblc
Code: Select all
on keyDown theKey
if theKey is not a number then
beep
else
pass keyDown -- I'm searching on a way to limit the amount of characters ex. limit 5
end if
end keyDown
Re: How do I limit amount of characters in a field?
Posted: Tue Jun 05, 2012 7:42 pm
by Dixie
Hey...
put this in the script of the field...
Code: Select all
on keyDown theKey
if theKey is not a number then
beep
exit keyDown
end if
if the number of chars of me = 5 then
beep
exit keyDown
else
put theKey after me
end if
end keyDown
be well,
Dixie