Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert a string in memo
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00903323
Message ID:
00903471
Vues:
21
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)?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform