There might be a "better" way to do this...
But what I have done is to add the following to the EditField's KeyDown event:
if Asc(Key)>47 and Asc(Key)<58 then
return false
else
return true
end if
This only allows zero through 9 to actually make it into the box.
Paul Kaiser
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?
>
> ---
> Subscribe to the digest:
> <mailto:realbasic-nug-digest at lists dot realsoftware dot com>
> Unsubscribe:
> <mailto:realbasic-nug-off at lists dot realsoftware dot com>
|