value of type string cannot be converted to systems.collections.array

rbreidenstein

Member
Joined
Dec 4, 2005
Messages
21
Programming Experience
1-3
I am attempting to pull information out of a database and into an array. When setting the array = to the field in the database i want it gives me this error "value of type string cannot be converted to systems.collections.array"

I googled and checked microcraps website, nothing came up.

any suggestions?

Rick
 
this may help
look for this line
VB.NET:
arrFound(iCounter, 0) = Db1DataSet.Employees(iCounter).Field1.ToString
i think it shdbe in this form
VB.NET:
DS.Tables(0).Rows(i).Item(0).ToString()
 
Last edited:
i want it to be a multi dimental array, i want to gather each col for a row in the dataset.

eg ... arr(0,0) would be col1 row1
arr(0,1) col1 row2
arr(0,5) col1 row 6
arr (100,100) col 100 row 100 and so on

it doesn't go all the way up to 100. Is there maybe another eaiser way i sould be using to handle this row of data?
 
Dim _FieldValue As String = Db1DataSet.Employees(iCounter).Field1.ToString

this returns a value just fine. but when i apptempt to do this directly into the array it fails.

Dim field1 As String = Db1DataSet.Employees(iCounter).Field1.ToString
arrFound(iFound, 0) = field1



field one returns the proper value, but it will not allow it to be added to the array
 
Back
Top