Hi,
Is it possible to set a format on a field that only allows the user to enter integer values ?
I can use the # format on a field, if the user enters 1.333 and leaves the field the value is
changed to 1.
But can I prevent the user from entering a decimal value ?? so he can only enter 1 and not 1.333
Regards,
Hi Hans,
Unfortunately, I don’t think so. To do that we would need a “keypress” event… (which would be nice!)
Hi Bob,
Thanks, i expected this answer.
B.t.w thanks for all the help in the past and succes with Clickware.
Regards,
Hi Hans - thanks very much!
BTW: There IS a way to attach the keypress event to a Servoy object… I don’t remember it off the top of my head - but I think I saw it on http://java-servoy.blogspot.com or http://servoyguy.com…. AND I’ve seen it demos that Sean Devlin has done in the past. If you find the code - be sure to update the post (and I’ll do the same)…