Results 1 to 7 of 7

Thread: Hip Hip - Array!

  1. #1

    Thread Starter
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Talking

    Yeah - sorry about that -Couldn't resist!

    Can anyone tell me the max number of elements toy can fit into an array? I want to fit around 4700 lines from a text file into an array (one line of text per element ).
    Is this possible?

    Cheers 'n' beers

    Skeen
    "It wasn't the booze that made me snooze, It was the Gin that did me in!"

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    I thing you can, i don't know the limits though!

  3. #3

    Thread Starter
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Angry

    I'm getting an error <subscript out of range>
    Does that mean I'm trying to put too much into the array?
    "It wasn't the booze that made me snooze, It was the Gin that did me in!"

  4. #4
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    It mean that you put more than you declare.

    What's your code,
    Are you doiing
    Dim myArray(4700) as String

  5. #5
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    Array's are zero based, unless you declare Option Base 1, then the array starts with one.

  6. #6
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    4700 is very manageable. Probably the previous post has it right. Delcare your array as Dim MyArray(1 To 4700) As String.

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  7. #7

    Thread Starter
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Thumbs up Nice1

    I've declared it o to 4700 and it started to work

    Cheers lads - Top Form!

    Skeen
    "It wasn't the booze that made me snooze, It was the Gin that did me in!"

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