Formatting Numeric Field
Posted: Wed Dec 03, 2008 7:44 pm
I created a field where I am only allowing numbers and a decimal place. Is there anyway to prevent more then one decimal place? If I use the code below, I can only allow numerics and a decimal place. The problem is I can't prevent multiple decimal places.
on keyDown theKey
if theKey is a number or theKey = "." and the length of me <10 then
pass keyDown
else
end if
end keyDown
Thanks!
Warren
on keyDown theKey
if theKey is a number or theKey = "." and the length of me <10 then
pass keyDown
else
end if
end keyDown
Thanks!
Warren