Maximum array size on a BS2
Colin
Posts: 1
I have read in the Parallax stamp manual that the largest value of an array can be ten elements (subscript value 0 thru 9), but when I compile a program in Basic Stamp Editor it accepts·up to 26 byte size elements before an 'out of variable space' error. Can I safely run a program with a·greater than 10 element array ? thanks.
Comments
I know of no array size restriction, up to the limit of the unasigned memory available. Once you reach that point, an error messsage will be issued.
PBASIC does not make any range checks and makes no presumptions about subscripts or array size. In fact, even if undeclared, any PBASIC variable can be treated like an array! Real nice feature when you need it.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...