Chaine caractère

Résolu
picinounours51 Messages postés 23 Date d'inscription mercredi 7 mai 2003 Statut Membre Dernière intervention 23 août 2005 - 31 mars 2005 à 14:21
picinounours51 Messages postés 23 Date d'inscription mercredi 7 mai 2003 Statut Membre Dernière intervention 23 août 2005 - 31 mars 2005 à 14:47
Bonjour,
je souhaiterais savoir comment faire en VB.NET pour tester une variable et rechercher si son contenu contient par exemple "toto" en début de chaine.
Exemple :
Variable 'Item' et son contenu "totogthgfgh"

MERCI

2 réponses

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
31 mars 2005 à 14:37
If Left(Item,4) = "toto" then ...

Daniel
3
picinounours51 Messages postés 23 Date d'inscription mercredi 7 mai 2003 Statut Membre Dernière intervention 23 août 2005
31 mars 2005 à 14:47
Merci Beaucoup C Nickel
0
Rejoignez-nous