Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Creating an array to store variable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Creating an array to store variable" Watch "Creating an array to store variable" New topic
Author

Creating an array to store variable

Nico Yukiko
Greenhorn

Joined: Aug 24, 2005
Posts: 21
How to create an array that can store variable.I try to create the code below but it is giving me an error "object reference not set to an instance on an object "

Dim Info As String
Dim arrInfo() As String

For k = 0 To totalRows - 1
Info = lobjDs.Tables("tblMemberApproval").Rows(k).Item("strUserId")
arrInfo(k) = Info
Next
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Creating an array to store variable
 
Similar Threads
JTable query
Creating an array to store variable
havin problems with Object array
code too long
Multi-dimensional array