I am capturing the SelStart position of the cursor in a text field (or memo) on a Tab form in the OnExit event of the control.
I have noticed that in some instances it returns '0' (first position in field) when the cursor has actually been placed elsewhere by a mouse click or by right-arrow movement.
It definitely seems to return an incorrect 0 value if I have deleted some part of text string just prior to repositioning cursor.
Has anyone else experienced this? Is there anyway to 'refresh' the SelStart value to try to avoid this error.
I saw one other allusion to this type of problem in another forum - but no solution.
I have noticed that in some instances it returns '0' (first position in field) when the cursor has actually been placed elsewhere by a mouse click or by right-arrow movement.
It definitely seems to return an incorrect 0 value if I have deleted some part of text string just prior to repositioning cursor.
Has anyone else experienced this? Is there anyway to 'refresh' the SelStart value to try to avoid this error.
I saw one other allusion to this type of problem in another forum - but no solution.