File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating an array to store variable

 
Nico Yukiko
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic