EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1131 background imageLoading...
Page #1131 background image
Appendix A: System Routines — Token Operations
1089
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
NG_RPNToText
(continued)
Example:
(continued)
while (KB_ENTER == Dialog( &dGetName,-1,-1, inpBuf, NULL)) {
if (FS_OK == TokenizeName( inpBuf, nameBuf ))
if (hsym = SymFindMain( TokNameRight(nameBuf) )) {
SymPtr = DerefSym( hsym );
if (hVal = SymPtr->hVal) {
switch ((BYTE) *HToESI( hVal )) {
/* NG_RPNToText cannot handle these types */
case GEO_FILE_TAG:
case GEO_MACRO_TAG:
case DATA_VAR_TAG:
case GDB_VAR_TAG:
case ASM_PRGM_TAG:
case PIC_VAR_TAG:
case GEN_DATA_TAG:
case TEXT_VAR_TAG:
DlgNotice( "NOTE", "Can not display value" );
break;
/* programs/functions are special, would need
to use GetFuncPrgmBodyPtr */
case USER_DEF_TAG:
DlgNotice( "NOTE", "Program or function" );
break;
default:
HeapLock( hVal ); /* tokenized */
TRY
hText = NG_RPNToText( hVal, TRUE, TRUE );
ONERR
hText = H_NULL;
ERD_dialog( errCode, FALSE );
ENDTRY
HeapUnlock( hVal );
if (hText) {
HeapLock( hText );
DlgNotice( (char *) inpBuf, (char *) (HeapDeref(hText)) );
HeapFree( hText );
}
} /* end switch */
} else
DlgNotice( "ERROR", "Symbol has no value" );
} else
DlgNotice( "ERROR", "Symbol not found" );
} /* end while */
} /* end vSym */

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals