Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go to specific location in a text box
Message
 
 
To
31/05/2007 15:36:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01229658
Message ID:
01229673
Views:
20
>>>I have a text box with an input mask of '0-99999' and a format of K. I would like the cursor to be in the 3rd column, i.e. after the '0-' when entering new data.
>>>
>>>Is this possible, if so how.
>>
>>See SelStart property.
>
>I did, but I cannot change it in the properties list. I can not figure out what "objectname" to use with
>
>WITH objectname
>   thisform.txtbox.selstart = 3
>ENDWITH
>
>or even it that is the correct approach.


SelStart you should set in the code, e.g.

textbox GotFocus():

this.SelStart = 3
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform