japanese 2020-03-11 13:58
This is a wark in progress
If I try do this program, it say "END SUB without SUB"
WHY?
Timo 2020-03-11 15:49
"END SUB" cannot be inside a block like IF / END IF. Imagine the part between SUB and END SUB like an own little program. Actually it's called subprogram ;)
SUB IN
IF 0<TX AND TX<LO+1 AND 0<TY AND TY<LO+1 THEN
D=1
PRINT D
END IF
END SUB
was8bit 2020-03-11 22:34
... also you have
RESET DIM
DIM A(8)
You may reload values...
A(1)=some number
..
A(8)=some number
As often as you want
But you may only DIMension a variable once..
DO
DIM A(8)
LOOP
Is an ERROR
I only say this just in case you were thinking about repeating the DIM A(8) command ... :)
was8bit 2020-03-11 22:37
Example..
If you were wanting to do this..
DIM A(8)
And then later do
DIM A(12)
It is best to do
DIM A(12)
And use AMAX=8 to use the array as 0-8 then AMAX=12 to use it later as 0-12