You are using con or byte variable to read from the array.
Ioannis
You are using con or byte variable to read from the array.
Ioannis
I'm not reading anything
the above quoted 2 line code from manual gives that error.
There is no more code in the program.
Hmm, I can't test this right now but I think, perhaps, that particular line of example code is in error - which would be unfortunate, it being in the manual and all...
If you look at section 5.5 you'll find:
Arraywrite is good when you want to do conversions to ASCII etc but loading constant values to an array is better done the old fashioned way, it's way more efficient:ARRAYWRITE
ARRAYWRITE ArrayVar, {Maxlength, Label,}[Item...]
Write one or more Items to byte array ArrayVar using SEROUT2 modifiers.
ARRAYWRITE allows the writing of formatted data to a byte array which can then
be output by other compiler commands, such as I2CWRITE, to write to a serial
LCD, for example.
stored[0] = 1260
stored[1] = 2500
and so on.
/Henrik.
You may have an older manual. I believe that mine is most recent and on page 37 that is attached here (and not 35) there is correct comment on BYTE and not WORD sized variable. Also nowhere within the manual is any state of WORD use in regard with ARRAYWRITE/ARRAYREAD.
Ioannis
Haha yes, mine is different
![]()
Bookmarks