04-27-2021, 05:36 PM
Hi
I don't believe the issue is to do with arrays at 0 but the fact I am using a variable to reference index 0.
The below example shows starting at 1 produces the same "out of memory"
see below :-
DIM MSG1 as UBYTE = 1
DIM MSG2 as UBYTE = 2
DIM MSG3 as UBYTE = 3
DIM A$(10)
A$(MSG1) = "Msg 1 on page 1"
A$(MSG2) = "Msg 2 on page 1"
A$(MSG3) = "Msg 2 on page 1"
print A$(1)
print A$(2)
print A$(3)
Thanks
I don't believe the issue is to do with arrays at 0 but the fact I am using a variable to reference index 0.
The below example shows starting at 1 produces the same "out of memory"
see below :-
DIM MSG1 as UBYTE = 1
DIM MSG2 as UBYTE = 2
DIM MSG3 as UBYTE = 3
DIM A$(10)
A$(MSG1) = "Msg 1 on page 1"
A$(MSG2) = "Msg 2 on page 1"
A$(MSG3) = "Msg 2 on page 1"
print A$(1)
print A$(2)
print A$(3)
Thanks