'uncomment next line to get through first error handler
'DIM totalTestArray(1 TO 50, 1 TO 45) 'this is not yet DIM'd !!!!!!!!!!!!!!!!!!!!!!!
a = a + 1
b = b + 1
TestArray(x, y) = TestArray(x, y) + (a + b)
totalTestArray(x, y) = totalTestArray(x, y) + TestArray(x, y)
' the 2nd error is that no file was opened
'52 bad file error because hven't started one yet!!!
'WRITE #1, TestArray(x, y)
'ON ERROR GOTO 0
PRINT "Total Value of the Array is now "; totalTestArray
(x
, y
)
HandlingTestArray:
'SCREEN _NEWIMAGE(1200, 800, 32) '<<<<<<<<<<<<<<<<<<<<< holy ship comment this out!!!!!!!!!!!!!!!!!
'_FULLSCREEN ' and this!!!!!!!!!!!!!!
PRINT "The Error involves x equaling "; x;
" and y equaling "; y;
" placing the value of "; TestArray
(x
, y
);
" in TestArray("; x;
","; y;
")"
'SLEEP
RESUME '<<<<<<<<<<<<<<<<<<<<<<<<<< now this is OK 'RETURN