Texas Instruments TI-89 Developer's Manual page 1180

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

1138
cmd_rename
Example:
This example renames the variable sourceName to destName .
EStackIndex esSource, oldTop = top_estack;
BYTE sourceName[MAX_SYM_LEN], destName[MAX_SYM_LEN];
TRY
if (TokenizeSymName( sourceName, 0 ) == NULL)
ER_THROW( INVALID_PATHNAME_ERROR );
esSource = top_estack;
if (TokenizeSymName( destName, 0 ) == NULL)
ER_THROW( INVALID_PATHNAME_ERROR );
cmd_rename( esSource, top_estack );
top_estack = oldTop; /* restore top of ESTACK */
ONERR
top_estack = oldTop; /* restore top of ESTACK */
PASS; /* pass error on up to caller */
ENDTRY
TI-89 / TI-92 Plus Developer Guide
(continued)
Not for Distribution
Appendix A: System Routines — Variables
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents