642
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), L1 if it is neither.
Key value.
Inputs:
Outputs:
TRUE, FALSE, L1.
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;
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Keyboard
Not for Distribution
Beta Version January 26, 2001