Ok, this is my first .net program and it is converted from vb6
I searched but could not find the answer.
Count is defined as long.Code:
For Count = 1 To SQL_RS.Fields.Count
Me.List_of_Fields.Items.Add(SQL_RS.Field(Count).Name)
Next
I get a item not in collection error when count is 1
I can see the value in the quickwatch window
Heeelp
Simon
