Hi don,
I wasn't sure rewriting String_1 like that was going to work but it does. I guess it's pretty much the same thing as doingCode:A VAR BYTE A = A + 1Yes, the arrays String_1 and String_2 are strored in RAM but when you do1 point of differ, to my understanding, all those arrays srt_1 and 2 are in RAM mem.The actual, literal string (This is a string) which is loaded into the array is stored in program memory (where else would it be) and loaded from there into the array. So you can do:Code:ArrayWrite String_1, ["This is a string"]Or manipulate it any way you see fit.Code:ArrayWrite String_1,["<name=IDLE_TIME,value=",0] HSEROUT String_1 ArrayWrite String_1 ["<name=LONG,value=",0] HSEROUT String_1
The drawback with ArrayWrite and HSEROUT when using literal strings is the IMHO hugh space each charcter occupies. Each byte/character added to an ArrayWrite statement eats away 6 bytes of program space while the @db approach apparently bitpacks two charcters in each byte meaning it only takes 1/12 of the space. Obviously the drawback with THAT is you can't use ArrayWrite to move it from flash to RAM.
/Henrik.




Bookmarks