Well this is my code below. What the point of it is is to create a random code and display it in text1.
VB Code:
  1. Public Sub Command1_Click()
  2.     Text1.Text = Mixup
  3. End Sub
  4.  
  5. Function Mixup () As String
  6. Dim x as Integer
  7. Dim chooser as Integer
  8.  
  9. For x = 0 to 7
  10.  
  11. [B]chooser = Int((3 * Rnd) + 1))
  12.  
  13. case select chooser[/B]
  14.    case 1
  15.        str = str + Chr(Int((122 * Rnd) + 90)) ' for lower case
  16.    case 2
  17.        str = str + Chr(Int(( 90* Rnd) + 65)) ' for upper case
  18.    case 3
  19.        str = str + Chr(Int((9 * Rnd) + 0)) ' for 0-9 case
  20. [B]end case[/B]
  21.  
  22. Next
  23.  
  24.     Mixup = str
  25.  
  26. End Function

This is my code and the things in bold are red in vb which means theres a problem but dont know how to fix them...So any help and advice on how to fix this would be very much appreciated thx guys