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

pb de saut de page

4 réponses
Avatar
pascal
j'ai un soucis,

je lis un tableau avec ce code :


Text1.Text = " "
Text1.Text = "Il y a actuellement " & UBound(Tableau) & " antidotes"

For Each elements In Tableau

Text1.Text = Text1.Text & elements & vbLf

Next

au lieu d' obtenir :

Il y a actuellement 3 antidotes
AMOXINE
AMOXICILLINE
PENICILLINUM

j'ai Il y a actuellement 3 antidotes|AMOXINE|AMOXICILLINE|PENICILLINUM

que faire ?

4 réponses

Avatar
marc.portella
Bonsoir,

A la place de vbLf, je mettrais plutôt vbCrLf..

Bonne soirée.

"pascal" a écrit dans le message de
news:uqj%23OJ$
j'ai un soucis,

je lis un tableau avec ce code :


Text1.Text = " "
Text1.Text = "Il y a actuellement " & UBound(Tableau) & " antidotes"

For Each elements In Tableau

Text1.Text = Text1.Text & elements & vbLf

Next

au lieu d' obtenir :

Il y a actuellement 3 antidotes
AMOXINE
AMOXICILLINE
PENICILLINUM

j'ai Il y a actuellement 3 antidotes|AMOXINE|AMOXICILLINE|PENICILLINUM

que faire ?




Avatar
pascal
j'ai essayé mais idem, pareil avec avec les Chr...
"marc.portella" a écrit dans le message de
news:c9vo7s$mtl$
Bonsoir,

A la place de vbLf, je mettrais plutôt vbCrLf..

Bonne soirée.

"pascal" a écrit dans le message de
news:uqj%23OJ$
> j'ai un soucis,
>
> je lis un tableau avec ce code :
>
>
> Text1.Text = " "
> Text1.Text = "Il y a actuellement " & UBound(Tableau) & " antidotes"
>
> For Each elements In Tableau
>
> Text1.Text = Text1.Text & elements & vbLf
>
> Next
>
> au lieu d' obtenir :
>
> Il y a actuellement 3 antidotes
> AMOXINE
> AMOXICILLINE
> PENICILLINUM
>
> j'ai Il y a actuellement 3 antidotes|AMOXINE|AMOXICILLINE|PENICILLINUM
>
> que faire ?
>
>




Avatar
David
Bonjour,

Et en +, mettre MultiLine à TRUE.

a+
Jean-Pol DAVID
www.peintures-david.com
ICQ 28394733
--
Quis ? Quid ? Ubi ? Quibus auxiliis ? Cur ? Quomodo ? Quando ?
"marc.portella" a écrit dans le message de news:
c9vo7s$mtl$
Bonsoir,

A la place de vbLf, je mettrais plutôt vbCrLf..

Bonne soirée.

"pascal" a écrit dans le message de
news:uqj%23OJ$
> j'ai un soucis,
>
> je lis un tableau avec ce code :
>
>
> Text1.Text = " "
> Text1.Text = "Il y a actuellement " & UBound(Tableau) & " antidotes"
>
> For Each elements In Tableau
>
> Text1.Text = Text1.Text & elements & vbLf
>
> Next
>
> au lieu d' obtenir :
>
> Il y a actuellement 3 antidotes
> AMOXINE
> AMOXICILLINE
> PENICILLINUM
>
> j'ai Il y a actuellement 3 antidotes|AMOXINE|AMOXICILLINE|PENICILLINUM
>
> que faire ?
>
>




Avatar
ng
Salut,

Verifie ton Multiline = True, de plus on n'est pas sous Unix, sous Windows
le retour à la ligne c'est vbCrLf (Chr$(13) & Chr$(10))

--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/



marc.portella a écrit :

Bonsoir,

A la place de vbLf, je mettrais plutôt vbCrLf..

Bonne soirée.

"pascal" a écrit dans le message de
news:uqj%23OJ$
j'ai un soucis,

je lis un tableau avec ce code :


Text1.Text = " "
Text1.Text = "Il y a actuellement " & UBound(Tableau) & "
antidotes"

For Each elements In Tableau

Text1.Text = Text1.Text & elements & vbLf

Next

au lieu d' obtenir :

Il y a actuellement 3 antidotes
AMOXINE
AMOXICILLINE
PENICILLINUM

j'ai Il y a actuellement 3
antidotes|AMOXINE|AMOXICILLINE|PENICILLINUM

que faire ?