Your code=
- Print #1, EmployeeName, Password
sets a TAB between name and password while the textline is split with a SPACE=
- ArrayPWLine = Split(ArrayPassword(ArrPasswordIdx), " ")
The TAB as separator gives "subscript out of range" by splitting the line.
It must be:
- Print #1, EmployeeName & " " & Password
If You use RND, You must also initialize the generator with: Randomize (see attachment) (see also help of VB6)
If it still not work on Your PC, please attach Your VB6 project (Zipped) in BYTES.
PS !! I have put some lines in comment !! it's for doing some tests !! Your code is not wrong !!!