Appendix A: Functions and Instructions 193
getKey() CATALOG
getKey() ⇒
integer
Returns the key code of the key pressed. Returns
0 if no key is pressed.
The prefix keys (shift ¤,
second function 2,
option ¥, alpha j, and drag ‚) are not
recognized by themselves; however, they modify
the keycodes of the key that follows them. For
example: ¥Ù ƒ Ù ƒ 2Ù.
For a listing of key codes, see Appendix B.
Program listing:
:Disp
:Loop
: getKey()! key
: while key=0
: getKey()! key
: EndWhile
: Disp key
: If key = ord("a")
: Stop
:EndLoop
getMode() CATALOG
getMode(
modeNameString
) ⇒
string
getMode("ALL") ⇒
ListStringPairs
If the argument is a specific mode name, returns
a string containing the current setting for that
mode.
If the argument is
"ALL", returns a list of string
pairs containing the settings of all the modes. If
you want to restore the mode settings later, you
must store the
getMode("ALL") result in a
variable, and then use
setMode() to restore the
modes.
For a listing of mode names and possible settings,
see
setMode().
Note: To set or return information about the
Unit System mode, use setUnits() or getUnits()
instead of setMode() or getMode().
getMode("angle") ¸ "RADIAN"
getMode("graph")
¸ "FUNCTION"
getMode("all")
¸
{"Graph" "FUNCTION"
"Display Digits" "FLOAT 6"
"Angle" "RADIAN"
"Exponential Format" "NORMAL"
"Complex Format" "REAL"
"Vector Format" "RECTANGULAR"
"Pretty Print" "ON"
"Split Screen" "FULL"
"Split 1 App" "Home"
"Split 2 App" "Graph"
"Number of Graphs" "1"
"Graph 2" "FUNCTION"
"Split Screen Ratio" "1,1"
"Exact/Approx" "AUTO"
"Base" "DEC"}
Note: Your screen may display different
mode settings.
getNum() MATH/Algebra/Extract menu
getNum(
expression1
) ⇒
expression
Transforms
expression1
into one having a reduced
common denominator, and then returns its
numerator.
getNum((x+2)/(yì 3)) ¸ x + 2
getNum(2/7)
¸ 2
getNum(1/x+1/y)
¸ x + y
getTime() CATALOG
getTime() ⇒
list
Returns a list giving the time according to the
current value of the clock. The list is in
{
hour,minute,second
} format. The time is returned
in the 24 hour format.
getTmFmt() CATALOG
getTmFmt() ⇒
integer
Returns an integer representing the clock time
format that is currently set on the device.
Integer values:
12 = 12 hour clock
24 = 24 hour clock