Equivalence de textbox.contains(variable) en vb 6.0
yaorens
Messages postés
239
Statut
Membre
-
f894009 Messages postés 17417 Date d'inscription Statut Membre Dernière intervention -
f894009 Messages postés 17417 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'aimerais savoir quel est l'équivalent de
Quelle fonction me sert de substitut ??
J'aimerais savoir quel est l'équivalent de
textbox1.text.contains(variable){ en vb .net } en vb6.0
Quelle fonction me sert de substitut ??
1 réponse
-
Re bonjour,
Suite
Public x Private Sub Command1_Click() x = x + 1 Command2_Click End Sub Private Sub Command2_Click() Dim str As String str = "This string has some text" Command2.Caption = x Text1.Text = str 'Equivalent de textbox1.text.contains(variable) 'de meme pour str.contains(variable) If InStr(1, Text1.Text, "some") Then MsgBox ("Ok pour: Text1.Text, Trouvé") End If If InStr(1, str, "string") Then MsgBox ("Ok pour: str, Trouvé") End If End Sub
Bonne suite