A1VBCode Forums

VB6 Run time error 9 Sub script Out of Range


http://www.a1vbcode.com/vbforums/Topic32194.aspx

By vkorlam - 8/26/2014

My VB6 code runs fine on my pc.

But it is throwing up 'Run time error 9 Subscript out of range' error on my client's machine.

I did not use any arrays in my code.

Could not trace out where the error is.

Please help.
By incidentals - 11/30/2014

error 9 is sometimes returned by the system when a file does not exist... and can be as simple as the extension miss matching and in the most extreme cases its because the file name is a protected name like "con" for example. AND on newer systems because the program has no access rights to a particular directory like c:\ on a win7 machine.