Detection des tabulation pour un split

alexbib Messages postés 8 Date d'inscription mercredi 16 juillet 2003 Statut Membre Dernière intervention 5 août 2003 - 24 juil. 2003 à 16:00
alexbib Messages postés 8 Date d'inscription mercredi 16 juillet 2003 Statut Membre Dernière intervention 5 août 2003 - 25 juil. 2003 à 09:13
Comment faire un split sur une tabulation?
Merci

4 réponses

BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 12
24 juil. 2003 à 16:20
TAB = CHR(9) im me semble

:clown) BasicInstinct :clown)
0
alexbib Messages postés 8 Date d'inscription mercredi 16 juillet 2003 Statut Membre Dernière intervention 5 août 2003
24 juil. 2003 à 16:23
Tout a fait mais si tu fait split("...(chaine de carc avec tab)",chr(9)) et bien ca marche pas.
0
cs_rene38 Messages postés 1858 Date d'inscription samedi 29 juin 2002 Statut Membre Dernière intervention 17 octobre 2013 11
25 juil. 2003 à 00:22
Chez moi, ça marche parfaitement
Open "g:\sans titre.txt" For Input As #1
texte = Input(LOF(1), 1)
Dim tabl() As String
tabl = Split(texte, Chr(9))
For i = 0 To UBound(tabl)
Text1.Text = Text1.Text & tabl(i) & vbCrLf
Next
0
alexbib Messages postés 8 Date d'inscription mercredi 16 juillet 2003 Statut Membre Dernière intervention 5 août 2003
25 juil. 2003 à 09:13
Merci c'est vrai ca marche. Je ne sais pas pourquoi je m'etais mis dans la tete que ca marche pas. Bon ben merci a tous pour votre aide.
0
Rejoignez-nous