>Thanks anyway
>
>>I don't know a good way to do what you're trying to do.
>
>Do you know a bad way? :-)
I may have spoken too soon.
This is probably not exactly what you're looking for, but maybe this will give you an idea.
In the gotfocus:
This.Selstart = 0
This.SelLength=LEN(this.Text)
In the MouseUp Event of the textbox:
LOCAL lnStart
lnStart = This.SelStart
This.SelStart = 0
This.SelLength = lnStart