Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays to ArrayList
Message
From
13/07/2005 16:30:00
 
 
To
13/07/2005 16:19:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01032389
Message ID:
01032398
Views:
20
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform