Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird textbox behavoir with numeric data.
Message
From
28/03/2000 20:37:48
 
 
To
28/03/2000 20:27:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00351828
Message ID:
00351832
Views:
17
>VFP 5. Trying to figure out what an existing form is doing. The field is defined is numeric 15.
>It has an inputmask of 999,999,999,999,999. alignment is set to right. No format property.
>The strange behavior is ths. When ever the cursor enter's the textbox it is in the middle of the
>textbox. If data is in the text box it does not seem possible to insert digits. For example if textbox
>displays 1,234 then type at start of cursor 53 1,234 becomes 531,234. put cursor at 3
>typeing 78 gives 1,278 instead of 1,237,834. What property am I missing? Removing the
>imputmast does not seem to make any difference. Is it possible to get cursor to be at the start of
>data and more importantly to insert digits instead of overwriting then?


I don't know if there is any other way, but when I met this a few years ago, the only thing I could do was put, in the GotFocus(), code that moved the cursor to the selstart = 1 (or 0, maybe) and sellength to 0.

It worked alright. (You might need to fiddle with it a little bit.)
Previous
Reply
Map
View

Click here to load this message in the networking platform