Checkreservedname - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix A: System Routines — Variable Name Utilities

CheckReservedName

Declaration:
WORD CheckReservedName (BYTE * TokName )
Category(ies):
Variable Name Utilities
Description:
Check for graph functions and other special names and return the type of
the variable passed or zero otherwise. Note that this routine works the
same as CheckSysFunc only a tokenized name is passed and it may also
return R_SYSVAR.
Inputs:
TokName — Pointer to tokenized variable name.
Outputs:
Same return value as CheckSysFunc with the addition of R_SYSVAR for
system variables.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
None
Differences:
See Also:
CheckSysFunc
Example:
The rename command, once it determines the variable to rename is a
folder uses CheckReservedName to insure the new name is not a
reserved name as shown in the following code fragment.
EStackIndex origName, EStackIndex newName
.
.
.
if (FolderFind(origName) <= FL_OTHER) {
if (CheckReservedName(newName))
ER_THROW( ER_RESERVED );
.
.
.
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1117
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