642
Appendix A: System Routines — Keyboard
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
KeyYesOrNo
Declaration:
short
KeyYesOrNo
(WORD
Key
)
Category(ies):
Keyboard
Description:
Return TRUE if
Key
represents YES (
¸
or the first letter of “yes” for the
current language), FALSE if it represents NO (
N
or the first letter of “no”
for the current language),
L
1 if it is neither.
Inputs:
Key value.
Outputs:
TRUE, FALSE,
L
1.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: GKeyIn
Example:
WORD key; short deleteIt;
.
.
.
/* wait for user to confirm deletion of config file */
while (TRUE) {
key = GKeyIn( NULL, GKF_NORMAL );
if (-1 == (deleteIt = KeyYesOrNo(key)))
continue;
}