Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Start
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00668524
Message ID:
00669124
Views:
14
>Hi Sebastian,
>
>When the user clicks the 'Add' Button, I run that code that I posted earlier within an enable fields method that I created, then refresh the form. As you see in the code, i set the SelStart of that textbox then set the focus to it. The textbox is initially filled with '081'.
>
>The cursor initially starts in the first position, before the '081', but if I tab out of the field, then tab back into that field, the cursor then starts after the '081'
>
>Thanks,
>
>Michael Vassallo
Michael

Try setting the Focus first then the SelStart value
ThisForm.Text1.SetFocus()
ThisForm.Text1.SelStart = 3
HTH
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform