PI1X Basic Programming Manual Ver. 1.10
39/156
Description
:
A%
is an integer variable to be assigned to the result, it is the
ordinal number of the menu item that user has selected.
Item$
is a string variable, indicating the menu item that are
separated and ended by carriage return (CR, 0xd).
This command allows user to select an item by using the
UP/DOWN arrow keys (or the shortcut keys), and then the
ENTER key to confirm the selection. Also it allows the use
of ESC key to cancel the current operation.
Menu title
:
@ (the title can be put anywhere in the menu
string)
Purpose
:
After use command “MENU”, it can get what option is
selected in these command.
Syntax
:
A% = MENU_GET_ MENUSELECT
Example
:
PRINT "Menu select=";
MENU_GET_ MENUSELECT
Description
:
A%
is a integer variable to be assigned to the result.
Purpose
:
Set command “MENU” ENT key status when use number
key to select menu.
Syntax
:
MENU_SET_SELECT_WITHENT(N%)
Example
:
MENU_SET_ MENUSELECT(1)
Description
:
N%
can be set 0 or 1.
N%
Meaning
0
Disable
1
Enable
Purpose
:
Get command “MENU” ENT key status when use number
key to select menu.
Syntax
:
A% =MENU_GET_SELECT_WITHENT
Example
:
PRINT "Menu with ENT=";
MENU_GET_ MENUSELECT
Description
:
A%
is a integer variable to be assigned to the result.
Purpose
:
To determine whether to restart or resume the program upon
powering on.
Syntax
:
POWER_ON(N%)