Hi Don,
Following up on my previous post.
The above gives the followin output:Code:String_1 VAR BYTE 100 String_2 VAR BYTE 32 Value VAR BYTE Value = 123 HSEROUT["Program start",13,13] ArrayWrite String_1, ["This is the first part ",0] ArrayWrite String_2, ["and this is the second part.",0] 'Now join the two strings back and add the ASCII representaion of Value at the end. ArrayWrite String_1, [STR String_1, Str String_2, " The value is: ", DEC Value,13,0] HSEROUT[STR String_1] Pause 2000 END
This shows that you can "build" strings (arrays) of data from constant data (program space), other arrays (RAM) and ordinary variables (RAM). I'm pretty sure you won't be able to move data from EEPROM to an array like this so you need to load that "manually" (FOR-NEXT loop or whatever).Code:Program start This is the first part and this is the second part. The value is: 123
/Henrik.




Bookmarks