>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.
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!