Hi David
I got a problem with both of the solutions. I pressed enter, then I wrote a word (let say: Canada), and then pressed spacebar (like 3 times) and then pressed Backspace to get to the word (so 3 times again) that I wrote. Now the cursor is right after the word, but if I run the following command:
GeologyForm.descript.SelText = "Ali"
My name would be written one or two characters behind the world(so it would be either CanaAlida or CanadAlia). It should have written right after the word( I mean CanadaAli).
Would you please advise me that how may I correct this. I am using VFP 6.
Thank you,
Ali
>Ali,
>
>If the memo in an editbox or textbox control, it's even a little easier than what Houston posted:
>
>
thisform.edtYourEditBox.SelText = " here comes the new text "
>
>if they have text currently highlighted (ie SelLength > 0) the new text will replace it.
>
>>How may I insert a character string in a memo field (where the cursor is)?