QB array limit

Stas

Senior member
Dec 31, 2004
664
0
71
CLS
10 INPUT "What file to open? ", filename$

OPEN filename$ FOR INPUT AS #1
INPUT #1, m, s
PRINT "I see this info:"
PRINT "M: "; m
PRINT "S: "; s

FOR x = 1 TO m
INPUT #1, n(x) <----------- It gets the error message right here!!!
PRINT "N #"; x; ": "; n(x)
NEXT x
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
I don't see a

DIM n(15) AS STRING

in your code, so I think you're just getting a built-in allocation for undeclared arrays
 

Stas

Senior member
Dec 31, 2004
664
0
71
I did not declare the array, therefore it was limited to 10 elements.
Sorry for bothering.

Thanks for your response, DaveSimmons.
:)