Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SelStart function
Message
From
30/03/2006 15:58:44
 
 
To
30/03/2006 15:54:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01097121
Message ID:
01109352
Views:
57
>>>>>I agree this sample works just fine.
>>>>>
>>>>>However, it does not duplicate my situation because the control in your grid is still a textbox instead of an editbox and you have no interactiveChange event code for the grid editbox control.
>>>>
>>>>I think I must have missed where you said the control was an EditBox.
>>>>
>>>>You certainly do appear to be right, an EditBox in a grid, I can't even make the .SelStart go anywhere else but the beginning. It jumps back there as soon as the control gets focus. FWIW, it seems it's always worked that way.
>>>
>>>Just an idea... save editbox's .selstart in .lostfocus(), and put it where it was in .gotfocus - may even work.
>>
>>Tried that. The .SelStart goes to 0 even if you set it to some other value in .GotFocus().
>
>This must have been a long thread. I had such a deja vu when I wrote that...
>
>But then it happens to me with my own code. I get an idea, and sit down to write code to do it - and then find out I already wrote it :).

At least I'm not the only one that happens to. But that's better than saying "What idiot wrote THIS code!" and finding out you had done it yourself. :(
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform