G
Guest
Can someone please help me out?
I have a dataset that contains 1 column.
I'm trying to populate an array from this column.
I'm using the code pasted below, and keep getting the following error on the
4th line of code:
Object reference not set to an instance of an object.
Dim arr() As String
Dim j As Integer = 0
For Each row As DataRow In _ds2.Tables(0).Rows
arr(j) = row(0).ToString
j = j + 1
Next
TIA,
Amber
I have a dataset that contains 1 column.
I'm trying to populate an array from this column.
I'm using the code pasted below, and keep getting the following error on the
4th line of code:
Object reference not set to an instance of an object.
Dim arr() As String
Dim j As Integer = 0
For Each row As DataRow In _ds2.Tables(0).Rows
arr(j) = row(0).ToString
j = j + 1
Next
TIA,
Amber