Deal with string is not as easy as in VB in PBP.
2 way to deal with string. Store each character in a Array byte.
using the internal EEPROMCode:Myarray var byte[5] loop var byte Myarray[0]="h" Myarray[1]="e" Myarray[2]="l" Myarray[3]="l" Myarray[4]="o" for loop = 0 to 4 hserout [Myarray[loop]] next here: goto here
there's also another way using DB in assembler but...Code:loop var byte EEPROMData var byte data @0,"hello" for loop = 0 to 4 read loop, eepromdata hserout [eepromdata] next here: goto here




Bookmarks