Forum Moderators: open
I have a couple of questions.
Do I have to set the number of values in the array when I dim the thing?:
Dim myArray(10)
or is there a way just to read the values into the array, like in php where you simply run through the values
myArray[] = "string value";
Any good resources covering this sort of thing.
Cheers
Dim vArray
Dim lArrayLen
Dim lIdx' detemine number of elements
lArrayLen = DoSomeCalculation()' Redim and then loop
ReDim vArray(lArrayLen - 1)
For lIdx = 0 To (lArrayLen - 1)
' do stuff to populate array
Next
Another option is the Dictionary object. This allows you to add values or objects without specifying any size.