03-02-2023, 06:05 PM
In terms of an Array in an Array, if the index could work with decimal values, theoretically you could create an array of multiple layers making say the whole numbers the name of the student and decimal values could associate with that student. For example all .5 could carry attendance, all .9 carry math test score etc. The expansion could be limitless. But it doesn't work. Here is my attempt
The results provide only 1.4 or 1.9. Why I don't know.
Code: (Select All)
Dim Shared TestArray(1.1 To 2)
For x = 1 To 2 Step .1
TestArray(x) = x
Next
For x = 1.1 To 2: Print TestArray(x);: Next
Print
Print TestArray(1.1)
Print TestArray(1.2)
Print TestArray(1.3)
Print TestArray(1.4)
Print TestArray(1.5)
Print TestArray(1.6)
Print TestArray(1.7)
Print TestArray(1.8)
Print TestArray(1.9)
Print TestArray(2)
The results provide only 1.4 or 1.9. Why I don't know.