![]() |
String Arrays problems "nonsense in Basic" - fixed - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: String Arrays problems "nonsense in Basic" - fixed (/showthread.php?tid=1030) |
String Arrays problems "nonsense in Basic" - fixed - RandomiserUsr - 02-27-2021 Hi, I am looking at how to store a string of descriptions into an array. Sounds straight forward enough, so should be something like Code: DIM A$(100,200) So it should print. This description 1 : The quick brown fox jumps over the lazy dog. It is being compiled with Code: zxbc aTest.bas --tzx --BASIC --autorun --debug-array C Nonsense in BASIC, 30:1 Any ideas why? I think this is down to memory? thanks Ken UPDATE: It seems that all I needed to do is declare A$(100,200) as A$(100) and access it via print A$(1) and that is it - nice to fix things along the new road :-) |