PDA

Click to See Complete Forum and Search --> : Runtime Error "Subscript out of range"


Rani
Nov 23rd, 1999, 02:03 AM
Can someone please help me?
When I'm trying to use an dynamic array array() I'm getting this error.

Aaron Young
Nov 23rd, 1999, 02:15 AM
When specifying an Element of an Array you are limited by that Arrays Lower and Upper Limit, e.g

'This Array has 10 Elements Starting from 0 thru 9
Dim aArray(9) As String

Either you haven't ReDimensioned your Array or you have specified an Element Index outside its Lower/Upper Limit.

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

MR
Nov 23rd, 1999, 02:24 AM
Its hard to say without seeing your code but my guess would be that you forgot to redim your array or you didn't redim your array large enough.

Gaurav
Nov 23rd, 1999, 07:00 PM
Hi,
Either u're doing what aaron says or,
when u're scrolling thru your array, u are starting at and index or 0 when u're otion base has been set to 1?

or your for loop is stepping 1 step more than it should be.


------------------
Gaurav Mahindra
gmahindra@extentia.com