At 12:35 PM -0600 1/30/02, J Draper wrote:
I have editfield1
I want to do a calculation on amount entered but user likes to enter 100,000
What the easy way to suppress the users comma?
Loop and check the ASCII value of each letter entered?
Is there a mask that can be ued on the input of data?
Check in the keydown event of your EditField. If the user enters an
unwanted key, return true. This tells RB that you have handled the
event and it doesn't need to do anything (like put the character in
your editField). You might also want to beep before returning true to
give the user some feedback, so they don't think your application is
simply broken.
|