- Recherche de mots dans texte
- Delphi / Pascal : Recherche de mots dans texte explications - CodeS SourceS
- Rechercher un mot dans un text
- Visual Basic / VB.NET : Recherche un mot, une phrase, ... dans un richtextbox ou une zone de texte -
- Visual Basic / VB.NET : Comparateur de texte et recherche de mots ressemblant - CodeS SourceS
Private Sub Command1_Click()
If InStr(Text1.Text, Text2.Text) Then' cherche
MsgBox "le mot " & Text2.Text & " est dans le texte" ' si oui
Else
MsgBox " Le mot " & Text2.Text & " n'est pas dans le text" ' si non
End If
End Sub