Results 1 to 5 of 5

Thread: Public Array won't redimension...

  1. #1

    Thread Starter
    Lively Member HerculesMO's Avatar
    Join Date
    Apr 2001
    Posts
    80
    I declared an array Public, because a bunch of forms are going to be using it.
    Code:
    Public Arr1() as String
    Anyhow, I'm running a for loop, and redimensioning it:
    Code:
    redim preserve arr(1,1,Counter)
    However, whenever I get the counter up one, it gives me 'Subscript out of range'.

    Any help?

    Thanks!

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I don't think you are able to ReDim Public arrays
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member HerculesMO's Avatar
    Join Date
    Apr 2001
    Posts
    80
    Hehe, I figured it out :P

    I redim'ed the array before adding +1 to the counter

    *smacks himself*

    Thanks though, and you CAN redim public arrays

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    HerculesMO - "Take that crptcblade" *smack*

    crptcblade -

    hehehe...sorry 'bout that, somebody told me before that you couldn't...
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Lively Member HerculesMO's Avatar
    Join Date
    Apr 2001
    Posts
    80
    Hehe, no problemo thanks for the help.

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