Hi,
It's my first post on this board. OK It's a simple example of my problem. First App is randomizing number between 1..5. There are 5 arrays with diffrent data. And when I want to Print data from random array, I have error - Expected array
VB Code:
Dim rnumber As Integer Randomize rnumber = Int(Rnd * 5) + 1 los = "names" & rnumber names1 = Array("Tom", "Arnold", "John") names2 = Array("Tom2", "Arnold2", "John2", "ddd") names3 = Array("Tom3", "Arnold3", "John3", "dfsdfsdfs") names4 = Array("Tom4", "Arnold4", "John4") names5 = Array("Tom5", "Arnold6", "John7") For i = 0 To UBound(los) 'in this moment I have error - Expected Array
Best Regards




Reply With Quote