KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to build up a multidimensional array which will hold two bits of info for each record in a database e.g. id, description. This is what I am currently doing. Dim mArray(,) As String Dim i As Integer = 0 While cmdReader.Read() mArray(i,0) = cmdReader.Item("id") mArray(i,1) = cmdReader.Item("description") i = i + 1 End While The problem I have here is that it doesn't like the i in mArray(i,0) . Anyone have any ideas about this? This is the error that is given Object reference not set to an instance of an object. Thanks for any and all help. Nalum
Tags (comma-separated)
Save Edits
Cancel