Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Fonction split

2 réponses
Avatar
Formateur 2 CEPAS
Bonjour
J'essaie d'exploiter la fonction split
mais j'ai une erreur d'execution incompatibilite de type
voila le bout de code
Sub test()
Dim tableau()
Open "tblclients.txt" For Input As #1
Line Input #1, maligne
tableau() = Split(maligne, ",")

End Sub
Merci de votre aide

2 réponses

Avatar
Michel__D
Bonjour,

Formateur 2 CEPAS a écrit :
Bonjour
J'essaie d'exploiter la fonction split
mais j'ai une erreur d'execution incompatibilite de type
voila le bout de code
Sub test()
Dim tableau()
Open "tblclients.txt" For Input As #1
Line Input #1, maligne
tableau() = Split(maligne, ",")

End Sub
Merci de votre aide



Essaye comme ceci :

Sub test()
Dim tableau
Open "tblclients.txt" For Input As #1
Line Input #1, maligne
tableau = Split(maligne, ",")

End Sub
Avatar
michel chambrillon
Ok c'est nickel
Merci
"Michel__D" a écrit dans le message de
news:OQu1$$
Bonjour,

Formateur 2 CEPAS a écrit :
Bonjour
J'essaie d'exploiter la fonction split
mais j'ai une erreur d'execution incompatibilite de type
voila le bout de code
Sub test()
Dim tableau()
Open "tblclients.txt" For Input As #1
Line Input #1, maligne
tableau() = Split(maligne, ",")

End Sub
Merci de votre aide



Essaye comme ceci :

Sub test()
Dim tableau
Open "tblclients.txt" For Input As #1
Line Input #1, maligne
tableau = Split(maligne, ",")

End Sub