(03-02-2023, 06:05 PM)Dimster Wrote: 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
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 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.
Arrays use integer indexes mult everything by 10 or 100 and you might be in business.
But you are no where near array in an array.
What is so hard imagining an array specially of numbers can be contained in a fixed length string?
b = b + ...