bwbasic icon indicating copy to clipboard operation
bwbasic copied to clipboard

Bug in READ statement

Open PharaohJack opened this issue 3 years ago • 0 comments

The following little program did a major error in handling read statements to assign to a string array in a loop. Instead of putting the data terms into the string array, it put the array index numbers into the array (1-7). 30 REM NEXT SEVERAL LINES FILLS PLACE NAME ARRAY 40 DATA ONES,TENS,HUNDREDS,THOUSANDS,TEN_THOUSANDS,HUNDRED_THOUSANDS,MILLIONS 50 DIM NUM$(10) 60 FOR I=1 TO 7:READ NUM$(I):NEXT

PharaohJack avatar Oct 01 '22 16:10 PharaohJack