menus()
Prgm
custom
title "funcs"
item "f("&char(2)&"xyz"&char(2)&")"
endcustm
custmon
EndPrgm
This creates a custom menu with one menu tab, labelled "funcs". The menu has a single item, f(xyz).
When you select this menu item, the argument xyz is highlighted. You can press [ENTER] to execute
f(xyz), or you can press [CLEAR] or [BACKSPACE] to clear xyz and enter a different argument.
A variation on this theme is to enclose "ans(1)" between the pair of char(2) characters. When the menu
item is chosen, ans(1) is highlighted, so that you can accept it by pressing [ENTER], or erase it with
one keystroke ([BACKSPACE] or [CLEAR]). This example shows expand() used with this method:
Item "expand("&char(2)&"ans(1)"&char(2)&")"
This technique saves keystrokes if you frequently use expand() or other CAS functions on previous
results in the history display.
There is another method to create the char(2). This method must be used on the calculator, and
programs which include char(2) created in this way cannot be sent to a PC with GraphLink, because
GraphLink does not convert the character correctly.
1. Enter this in the command line and press [ENTER]: char(2)&char(2)&char(2)&char(2)&char(2)
2. Highlight the first answer and press [ENTER]. A string with three characters is highlighted.
Copy this string to the clipboard.
3. In the program editor, paste the clipboard contents into a string (between double quotes). Only
one highlighted instance of the character is pasted. Press [RIGHT] and continue typing in the
program.
(Credit to Glenn Fisher, submitted by Larry Fasnacht; highlight method by Bhuvenesh Bhatt, ans(1)
variation by Bez, char(2) creation method by Kevin Kofler)
[9.7] Creating 'dynamic' dialog boxes
You may run into a programming situation in which you want to prompt for user input with the Request
function, but you don't know the variable in advance. You can use expr() with a string argument to
create the dialog box, like this:
expr("request " & char(34) & promptn & char(34) & "," & vname)
where promptn is the prompt string, and vname is the variable name as a string. For example, if
promptn = "what?"
vname = "myvar"
9 - 6
Summary of Contents for TI-92+
Page 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Page 53: ...LCD connector detail PCB switch side 1 42...
Page 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Page 55: ...Key cap detail 1 44...
Page 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Page 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...