Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Position with SelStart Property
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00004902
Message ID:
00004914
Views:
38
>Has anyone encountered problems when setting the cursor position inside an edit box after set the value of the edit box. (The edit box is read only, in a grid, and its controlsource is an expression)

I don't know about you, but when I set the cursor (actually, caret) position within an edit box using the SelStart property, I get no problems. I guess your problem stems from the fact that its ControlSource is an expression. VFP might be recalculating the contents of the control and resetting the caret position.

Have you tried using a memory variable to hold the edit box value instead?
alistair israel
Distressed DBA, Sleepy SysAd, Weary WebMaster (aka Senior Software Engineer)
aisrael@poboxes.com
Makati City, Philippines
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform