Setmenu, Setmenu( setmenu( 8 – Texas Instruments TI-73 EXPLORER User Manual

Page 243

Advertising
background image

Chapter 12: Programming

237

7312ENG.DOC CH 12 Programming, English Julie Hewlett Revised: 07/29/98 12:17 PM Printed: 05/19/99 9:02

AM Page 237 of 32

The program above pauses until you select 1, 2, 3, 4, 5, 6, or 7.

If you select

2:FEBRUARY 19

, for example, the menu disappears

and the program continues execution at

Lbl B

.

SetMenu(

SetMenu( 8

D

D

Like

Menu(

,

SetMenu(

sets up a menu of up to seven items.

During program execution, the user assigns (and edits, as

necessary) numerical values to each item. To assign a value,

enter the value using the number keys, and then press b

or #.
Long values do not wrap; they scroll off the screen, and an

ellipsis (…) is displayed. Use " and ! to scroll the whole

value. Use $ and # to move between menu items as

necessary.

:SetMenu("

title

"

,

"

item1

"

,variable1[,

"

item2

"

,variable2,…]

)

The menu title is enclosed in quotation marks (

"

"

) and can

have up to 16 characters. Up to seven menu items (also

enclosed in quotation marks) follow. During program

execution, the menu displays the first 10 characters of item.

Each item needs a corresponding variable where the entered

value is stored.
The values you enter for the variables (assigned to the menu

items) are stored in the calculator’s memory. Also, if you

assign to a menu item a variable that has been previously

defined in the calculator’s memory, that value displays when

you first execute the program.
Press - l to exit the menu and end program execution.

Advertising