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:
  1. Dim rnumber As Integer
  2. Randomize
  3. rnumber = Int(Rnd * 5) + 1
  4.  
  5.  
  6. los = "names" & rnumber
  7.  
  8.  
  9. names1 = Array("Tom", "Arnold", "John")
  10. names2 = Array("Tom2", "Arnold2", "John2", "ddd")
  11. names3 = Array("Tom3", "Arnold3", "John3", "dfsdfsdfs")
  12. names4 = Array("Tom4", "Arnold4", "John4")
  13. names5 = Array("Tom5", "Arnold6", "John7")
  14.  
  15.   For i = 0 To UBound(los) 'in this moment I have error - Expected Array

Best Regards