Contraire de string.Split

Résolu
babe59 Messages postés 189 Date d'inscription vendredi 28 mai 2004 Statut Membre Dernière intervention 27 novembre 2015 - 23 avril 2007 à 13:46
krakken971 Messages postés 1 Date d'inscription jeudi 3 mai 2007 Statut Membre Dernière intervention 3 mai 2007 - 3 mai 2007 à 18:19
Bonjour
y a til une fonction qui fasse le contraire de string[] tabCh = ch1.Split ?

en fait j'ai un tableau de string que je voudrais mettre dans une chaine
tab[1] = "a"
tab[2] = "b"
tab[3] = "c"
=> string chResult = "a - b - c"

Merci
DT
A voir également:

2 réponses

SharpMao Messages postés 1024 Date d'inscription mardi 4 février 2003 Statut Membre Dernière intervention 7 juin 2010 69
23 avril 2007 à 14:02
Hello,

Essaie avec ça :

string
 result =

string
.Join(

" - "
, tab);




Amicalement, SharpMao
3
krakken971 Messages postés 1 Date d'inscription jeudi 3 mai 2007 Statut Membre Dernière intervention 3 mai 2007
3 mai 2007 à 18:19
HI Everyone,

i'm not really in computers but i'm trying to learn !!! in fact i'm taking a computer class  on visual C# .NET 2003 and i need help on two topics if you don't mind (Thanks in advance)

Topic : Returning Date from a Custom Method to a Decision

use a custom method to return the First letter of the last name as a Char data Type. use this returned data in a decision type to send the student/user a MessageBox telling them wich room to go to for registration.
example: if the student's last name begins with 'A' through 'H' then send the student to room 1
and if student's last name begins with 'I' through 'S' send to room 2

What i need is the codes, i did the form already. thanks a lot
0
Rejoignez-nous