Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays to ArrayList
Message
De
13/07/2005 16:19:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Arrays to ArrayList
Divers
Thread ID:
01032389
Message ID:
01032389
Vues:
59
Dim temp() As String = strEmailString.Split(";")
Dim x As Integer
For x = 0 To temp.GetUpperBound(0)
       lstEmail.Add(Trim(temp(x)))
Next
Can anybody tell me what is wrong with this block? strEmailString contains several email addresses delimited by semicolors. lstEmail is an ArrayList. I am getting an error stating "Object reference not set to an instance of an object." on the lstEmail.Add.... line. Any help would be appreciated.

TIA!
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform