Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


VB6 Run time error 9 Sub script Out of Range


VB6 Run time error 9 Sub script Out of Range

Author
Message
vkorlam
vkorlam
Forum God
Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)Forum God (549 reputation)

Group: Forum Members
Posts: 1, Visits: 4
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.
Joey
Joey
Forum God
Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)

Group: Forum Members
Posts: 72, Visits: 46
Can you post your code and specify the line that is triggering the error? You say you're not using arrays, so it may be a file that it cannot locate.
Joey
Joey
Forum God
Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)Forum God (16K reputation)

Group: Forum Members
Posts: 72, Visits: 46
It could be your Windows Explorer setting, "hide extensions for known file types". You may have it checked and your client unchecked.
incidentals
incidentals
Forum God
Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)Forum God (563 reputation)

Group: Forum Members
Posts: 1, Visits: 2
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.





Edited
11/30/2014 by incidentals
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search