Posted: 02:40am 28 Feb 2017 |
Copy link to clipboard |
Print this post |
|
page 55 of the micromite manual gives several examples of using the DIM statement, including:
DIM name AS STRING DIM strn$(200) LENGTH 20 these two examples suggest to me that the following should work:
DIM info(200) AS STRING LENGTH 16 it does not:
> DIM info(200) AS STRING LENGTH 16 Error: Not enough memory > the specified length is ignored. whereas:
Dim STRING info(200) LENGTH 16 behaves as expected:
> Dim STRING info(200) LENGTH 16 > memory Flash: 1K ( 0%) Program (47 lines) 59K (100%) Free
RAM: 4K ( 7%) 1 Variable 0K ( 0%) General 46K (93%) Free > is this (DIM info(200) AS STRING LENGTH 16) the sign of a bug?
cheers, rob :-)Edited by robert.rozee 2017-03-01 |