' {$STAMP BS2} ' {$PBASIC 2.5} ' 2008 mlab.taik.fi/paja ' Understanding Byte Arrays. aTest VAR BYTE(4) '[00000000, 00000000, 00000000, 00000000] '[0000, 0000, 0000, 0000] : You can't make this array. Array always makes BYTES. DEBUG CLS ' Store values in the array aTest(0) = "U" ' U in ASCII code aTest(1) = 67 ' C in ASCII code aTest(2) = 73 ' I in ASCII code aTest(3) = 84 ' T in ASCII code ' Access to the array eg. aTest(n) DEBUG DEC aTest(0), TAB, DEC aTest(1), TAB, DEC aTest(2), TAB, DEC aTest(3), CR DEBUG aTest(0), TAB, aTest(1), TAB, aTest(2), TAB, aTest(3), CR