Login
Plus/4 EncyclopediaFirstBackNextLast

?BAD SUBSCRIPT ERROR
Category
Reference/BASIC Error Messages

Topic
This error occurs if a reference is made to an array element outside the boundaries of the array.

Examples
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.

ERR$ error number
18



Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon