Insérer du texte à un endroit précis

Résolu
cire2003 Messages postés 101 Date d'inscription samedi 8 novembre 2003 Statut Membre Dernière intervention 8 septembre 2010 - 11 janv. 2005 à 00:54
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 11 janv. 2005 à 09:49
Salut, j'aimerais savoir comment l'on fait pour insérer une phrase à un endroit doné par rapport à où ce situe mon curseur. Exemple: J'aime programmer. Si le curseur est tout de suite après aime, j'aimerais que mon texte soit ajouter à cet endroit. Comment faire?

3 réponses

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
11 janv. 2005 à 09:49
Text1.SelText = "blablabla"

Daniel
3
cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 9
11 janv. 2005 à 08:29
Par hazard tu n'aurais pas posté le même message avec 10 minutes d'interval ????

It@li@
0
cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 9
11 janv. 2005 à 08:38
MotRecherche = "Code"
MotAjout = "Visual Basic"


Pos = InStr(1, Text1.Text, MotRecherche)
Text1.Text = Mid(Text1.Text, 1, Pos + Len(MotRecherche)) & " " & MotAjout & " " & Mid(Text1.Text, Pos + Len(MotRecherche), Len(Text1.Text))

It@li@
0
Rejoignez-nous