Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position cursor inside am Editbox
Message
From
19/09/2000 14:21:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00418109
Message ID:
00418185
Views:
32
>>Add a custom property to your editbox superclass - something like nRealSelStart - default to -1.
>
>Trey,
>
>Why do you have to do that? I just tested and using .selstart works fine for me. Am I missing something?
>
>If a put the following in a button on a form Thisform.MyEdit.SelStart = 4. Type 10 characters in the edit box, click the button, then tab back to the edit box, the cursor is in the 4th position.

It works for me, too, but Fransisco indicated that simply setting SelStart was not working for him, so I suggested he try this to get around it.
You know, I forgot to even ask if the edit box was empty to begin with....
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform