Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox selstart
Message
 
To
03/02/1999 01:28:00
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00183031
Message ID:
00183384
Views:
21
>>It could be the value of your text1.Format property. If .Format = "R", I know the text.Value will not include the mask. So maybe selstart doesn't change when you pass a mask character such as "," or "."
>I didn't put anything on text.format, what I meant is if I press left/right arrow passing the value in text1 (assume it has a value=150000 and displayed 150,000.00, and text1.selstart value would be visible on text2) and when the cursor pass ',' or '.' which is already on text1, the cursor will jump.
>As example,
>text1.inputmask='999,999.99'
>
>when text1.selstart=2 and right arrow is pressed, text1.selstart will jump to 4 and cursor on text1 jump to after the 1st comma.

When the variable for the controlsource is numeric, it behaves as if textbox.format="R" implicitly, since non-numeric characters won't be stored into the variable. '$', ',', and '.' don't count.

HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform