>Hello All
>Does anyone know when SelStart is being set for edit control ?
>TIA,
>Alex.
Alex,
I suppose you want your insertion point to be somewhere in the text after you pasted something into the memo. Here is a code fragment from the Click() of a command button that inserts a comment into an edit box and sets the selstart just after it.
REPLACE v_Donateur.mMemo WITH lcString + v_Donateur.mMemo
this.Parent.cEditBox1.Refresh()
this.Parent.cEditBox1.SetFocus()
this.Parent.cEditBox1.SelStart = LEN( lcString) -2
José