Results 1 to 4 of 4

Thread: Runtime Error "Subscript out of range"

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Posts
    6

    Post

    Can someone please help me?
    When I'm trying to use an dynamic array array() I'm getting this error.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    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

  3. #3
    Junior Member
    Join Date
    Nov 1999
    Posts
    23

    Post

    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.

  4. #4
    Lively Member
    Join Date
    May 1999
    Location
    India
    Posts
    97

    Post

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width