tchuk57
Messages postés9Date d'inscriptionmardi 27 juin 2006StatutMembreDernière intervention 8 septembre 2008
-
8 sept. 2008 à 10:25
LIBRE_MAX
Messages postés1402Date d'inscriptionmardi 1 mai 2007StatutMembreDernière intervention 7 octobre 2012
-
8 sept. 2008 à 11:43
Bonjour à tous!!!
Je souhaiterai savoir comment verifier le format du text contenu dans un richtextbox
En effet , je voudrai verifier si toutes mes lignes contenu dans ce richtextbox commence par "Part" et se termine par "NOGO" . Par exemple:
Part 2 blabalabala NOGO
Part 12 balalavalala NOGO
Auriez vous uine solution?
Je vous remercie d'avance
Cordialement
LIBRE_MAX
Messages postés1402Date d'inscriptionmardi 1 mai 2007StatutMembreDernière intervention 7 octobre 20126 8 sept. 2008 à 11:43
Bonjour,
Dim T() As String
T = Split(rtfBox.Text, Chr(10))
Dim i as integer
For i=0 To Ubound(T)-1
If Left$(T(i),4) <> "Part" Or _
Right$(T(i),4)<>"NOGO" Then
MsgBox "Condition non vérifiée à la ligne : " & i
Exit For
End If
Next