Menu



* Spectrum * Alan Crowe *



Menu routines can be rather tedious to organise, with each

item usually requiring a PRINT statement to put it on the

screen. This short program overcomes this problem. It can

be placed at the start of a Basic program and only lines

80 to 97 need to be saved separately and merged into the

program which is to be menu-driven.

  In the printed version, the lines from 1100 onwards

illustrate how the routine can be used. Up to 10 items can

be displayed on a particular menu; more items should be

split into sub menus. Alterations are carried out by adding

or deleting the two DATA variables for each item.

[The routines in the demo program use the Microdrive, but

 the menu itself does not require the Interface 1.]