I have an array in some code that I want to move into a class so that I use it almost like normal.
Sort of like this:
Dim MyArray(5) As String
MyArray(0) = "Hello, world."
To something like this:
'create instance of class
MyClass.MyArray(0) = "Hello, world."
The "get" should work fine, but I don't know about the "set". The only thing I can think of is a helper method that set it using the index and string, something like this:
MyClass.SetMyArray(0, "Hello, world.")
Is there a better way?