EasyManuals Logo

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 #1130 background imageLoading...
Page #1130 background image
1088
Appendix A: System Routines — Token Operations
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
NG_RPNToText
Declaration:
HANDLE
NG_RPNToText
(HANDLE
hExpr
, BOOL
bRetToColon
,
BOOL
bFullPrec
)
Category(ies):
Token Operations
Description:
Converts the tokenized form of an expression, statement, or group of
statements as contained in the data referenced by the handle
hExpr
to
linear ASCII text form. The first word of the data must be the length of the
data which is used to find the first tag of the tokenized data.
Inputs:
hExpr
Handle to tokenized object (first word is length of
object).
bRetToColon
If TRUE, convert carriage returns to colons; otherwise
leave them alone.
bFullPrec
If TRUE convert floats to full precision; otherwise
convert floats according to the current mode settings.
Outputs:
Returns the HANDLE to a heap packet which contains the ASCII text
result. Throws an ER_MEMORY error if not enough memory.
Assumptions:
None
Side Effects:
May cause heap compression.
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also: display_statements
Example:
This example is a small viewer for variables of type EXPR, LIST, MAT, and
STR. These types are always tokenized (programs and functions may be in
text format).
/* Resource for vSym */
DIALOG dGetName, 0, 0, NoCallBack
{
EDIT, {0, 8, 15}, "", 0, 17, 18
HEADER, {0, 0, 0}, "Enter variable name, ESC to exit", PDB_OK, PDB_CANCEL
XFLAGS, {0, 0, 0}, XF_ALLOW_VARLINK | XF_VARLINK_SELECT_ONLY, 0, 0, 0
}
void vSym( void )
{ char inpBuf[MAX_SYM_LEN];
BYTE nameBuf[MAX_SYM_LEN];
HSYM hsym;
HANDLE hVal;
volatile HANDLE hText;
SYM_ENTRY *SymPtr;
(continued)

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