A CLEAR maybe?
----- Original Message -----
From: Mike Stein
To: [email protected]
Sent: Saturday, January 13, 2018 10:26 PM
Subject: Re: [M100] M100 Numeric Arrays
Something not right at your end; works fine for me.
Are you sure the DIM( isn't out of sequence or gets cancelled/reset somehow?
m
----- Original Message -----
From: Peter Noeth
To: Model 100 Discussion
Sent: Saturday, January 13, 2018 10:10 PM
Subject: [M100] M100 Numeric Arrays
All,
Is it just me, or has anyone else had problems with M100 numeric arrays. I
wanted to use a numeric array on my M102, but I keep getting a BS (Bad
Subscript) when trying to access indexes over 10 on a single dimensioned array.
BASIC does not complain about DIM P(65) or DIM P%(65), but P(11)=22 gives a
BS error. The book says arrays can be whatever size/dimensions that memory will
allow, but only seems to accept indexes 0-10. The examples only use 10 as the
index.
Is this another one of the documentation oversights? I don't remember
reading about problems with this computer was in popular use.
String arrays don't seem to have this problem, at least for singly
dimensioned arrays anyway.
I guess I could set HIMEM and manipulate the array myself.
Regards,
Peter