Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

109 210 DATA MONTEGO 1.6, 5660 220 DATA TRIUMPH ACCLAIM CD, 6239 230 DATA MAESTRO VANDEN PLAS, 7395 240 DATA ROVER 2300S, 10264 250 DATA DAIMLER 4.2, 22995 260 270 REM LOTUS CARS 280 DATA EXCEL, 14990 290 DATA ESPRIT SERIES 3, 15985 300 DATA ESPRIT TURBO, 19980 >RUN DO YOU PREFER BL OR LOTUS CARS? B HOW MUCH ARE YOU WILLING TO SPEND ?6000 IN THAT CASE YOU CAN AFFORD THESE: 3198 MINI 1000 CITY 4699 METRO HLE 5419 MAESTRO 1.3L 5660 MONTEGO 1.6 DO YOU PREFER BL OR LOTUS CARS? L HOW MUCH ARE YOU WILLING TO SPEND ?1900 IN THAT CASE, YOU CAN AFFORD THESE:

Out of DATA at line 100 You will notice that line 50 usees the RESTORE statement to set the data ‘pointer’ to either line 170 where BL data is stored or to line 270 where Lotus data is stored. This ensures that data is read from the correct list. Lines 90 to 130 attempt to read off eight sets of data from the data lists, but fail when Lotus data is selected as only three sets of data are provided. The message Out of DATA at line 100 indicates the failure to find enough entries in the data table. Methods of overcoming the problem are given in chapter 27 which deals with error handling.