I am trying to write a seemingly simple program. However when i was createing the array in a class called "Levels" I was unable to use the data in Class "form1" how would i transport the data from "Levels" to "Form1"
Here is a sample of what i have:
Public Class Levels
Public Shared Sub...
So what is happening is that every time you enter the "sub"
Private Sub newItem()
ItemIndex += 1
ReDim Preserve Inventory(ItemIndex)
Inventory(ItemIndex) = Item
End Sub
ItemIndex is equal to 0 try checking it like this
Private Sub newItem()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.