Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays to ArrayList
Message
De
13/07/2005 16:30:00
 
 
À
13/07/2005 16:19:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01032389
Message ID:
01032398
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Hi Mike,
Probably missed
Dim lstMail as new ArrayList() Maybe you declare arraylist without "new" ?
Just mind...

Denis.



>
>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform