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!