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

Click here to load this message in the networking platform