AMOSi:On Menu

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Tutorial:Tutorials/Menus/Menus_3.AMOS

Automatically jumps to an appropriate Procedure, or Label depending on the menu title selected by the user. This routine can then check out the item number using the CHOICE function.

There are three separate forms of this command.

On Menu Proc proc1,proc2..
On Menu Gosub label1,label2...
On Menu Goto label1,label2...

This feature needs to be activated using the ON MENU ON command prior to use. Also note that before returning to AMOS Basic, your procedure or routine MUST perform an ON MENU ON to restart the testing process. Otherwise the menus will be deactivated after the first menu call.