dunlisting
09-02-2008, 08:22 PM
Please excuse my 'New Kid on the Block' question,
I need to load a string from a·DATA statement into a variable array. Do I guess that I need to load each byte from the string into each location of the array, there is no way I can just assign the string knowing the start location and load it directly into the variable name?
locations DATA "Barnes","OysterLnBusStp","LaurelGrange","Coop","PloughGnSW","PloughGnS","Library","Chemist","Head First","Boundys"
········· DATA "Willows","BreweryMobray","HardwareShop","CarlSarah","Cleaners","POffice","BeautyLnge","Changes","ClockHse","210High"
name VAR Byte(13)
· 'name(0) = "s"
· 'name(1) = "t"
· 'name(2) = "r"
· DEBUG STR name, CR
Hoping one of you Gurus can guide me.
Thanks
Dunlisting
·
I need to load a string from a·DATA statement into a variable array. Do I guess that I need to load each byte from the string into each location of the array, there is no way I can just assign the string knowing the start location and load it directly into the variable name?
locations DATA "Barnes","OysterLnBusStp","LaurelGrange","Coop","PloughGnSW","PloughGnS","Library","Chemist","Head First","Boundys"
········· DATA "Willows","BreweryMobray","HardwareShop","CarlSarah","Cleaners","POffice","BeautyLnge","Changes","ClockHse","210High"
name VAR Byte(13)
· 'name(0) = "s"
· 'name(1) = "t"
· 'name(2) = "r"
· DEBUG STR name, CR
Hoping one of you Gurus can guide me.
Thanks
Dunlisting
·