Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text box with numeric input
Message
 
 
To
22/01/2009 02:50:09
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01376164
Message ID:
01376238
Views:
13
>>my form has a control text box with data value 0,
>>when user want to key in value 1 and click other control box (without press enter)
>>the text box gives me value 10
>>how to get the correct input value even user does not press enter ?
>
>Do you have InputMask set for the textbox? I usually remove the InputMask in the GotFocus of the textbox and restore in the LostFocus.
>
>yes i do have ,but if do what you said, still there is another problem...
>if the text box value is already 100, i click on the text box and key in 2 then click the other text box, that text box shows 210....

You would have to code KeyPress event for event and check for MaxLength, I think. See sample at
How to prevent BackSpace key in a TextBox from moving a cursor to the previous control FAQ #28161
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform