|
-
Nov 22nd, 2000, 08:59 AM
#1
Thread Starter
Addicted Member
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!"
-
Nov 22nd, 2000, 09:03 AM
#2
Frenzied Member
I thing you can, i don't know the limits though!
-
Nov 22nd, 2000, 09:06 AM
#3
Thread Starter
Addicted Member
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!"
-
Nov 22nd, 2000, 09:08 AM
#4
Frenzied Member
It mean that you put more than you declare.
What's your code,
Are you doiing
Dim myArray(4700) as String
-
Nov 22nd, 2000, 09:37 AM
#5
Addicted Member
Array's are zero based, unless you declare Option Base 1, then the array starts with one.
-
Nov 22nd, 2000, 09:41 AM
#6
Fanatic Member
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...
-
Nov 22nd, 2000, 10:08 AM
#7
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|