| ?BAD SUBSCRIPT ERROR | Reference/BASIC Error Messages
This error occurs if a reference is made to an array element outside the boundaries of the array.
PRINT A(-1) negative indexes are not allowed.
PRINT A(11) will cause this error. Remember that arrays that are not explicitly declared with DIM statement have elements from 0-10.
10 DIM A$ (20):A$ (21) = "OOPS!" will cause this error, since 21 is outside the array boundary.
18 |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |