Editing a numeric field
Posted: Tue Mar 17, 2009 7:12 pm
I have a numeric field which I limited the size to 7 digits:
on keyDown theKey
if theKey is a number and the length of me <7 then
pass keyDown
end if
end keyDown
When I put 7 digits in the field and tab back into the field, I try to enter a new number and it doesn't allow me. My key strokes don't work until I delete the value first.
I have used the command:
select the text of field "Quantity Ordered"
...which selects the whole field. Shouldn't the value get overwritten when the field is selected and I key a new value?
Hopefully I explained myself clearly.
Thanks for any help!
Warren
on keyDown theKey
if theKey is a number and the length of me <7 then
pass keyDown
end if
end keyDown
When I put 7 digits in the field and tab back into the field, I try to enter a new number and it doesn't allow me. My key strokes don't work until I delete the value first.
I have used the command:
select the text of field "Quantity Ordered"
...which selects the whole field. Shouldn't the value get overwritten when the field is selected and I key a new value?
Hopefully I explained myself clearly.

Thanks for any help!
Warren