General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only