Texas Instruments TI-89 Developer's Manual page 1077

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

Advertisement

Appendix A: System Routines — Symbol Table Utilities
SymFindFirst
TI-89 / TI-92 Plus
Differences:
None
See Also:
SymFindNext, SymFindPrev, SymFindFoldername, FolderOp
Example:
This example walks through the HOME folder (not the folder 'main') which
is the folder that contains all of the folders. It uses SymFindFirst and
SymFindNext to build a pop-up of all of the folders in the system. This is
basically the code for the VarCreateFolderPopup routine. See FolderOp
for a description of why the HOME folder is locked during this operation.
HANDLE hPopup;
SYM_ENTRY *se;
BYTE HomeFolder[] =
if ((hPopup = PopupNew( NULL, 0 )) == H_NULL)
return;
FolderOp( HomeFolder+2, FL_LOCK );
se = SymFindFirst( HomeFolder+2, FO_NONE );
while (se != NULL) {
if ((se->Flags & SF_FOLDER) && !IsTempNameChar(se->Name[0])) {
if (!PopupAddText( hPopup, EOF, (char *) se->Name, 0 )) {
FolderOp( HomeFolder+2, FL_UNLOCK );
PopupFree( hPopup );
return;
}
}
se = SymFindNext();
}
FolderOp( HomeFolder+2, FL_UNLOCK );
PopupDo( hPopup, -1,-1, 0 );
PopupFree( hPopup );
TI-89 / TI-92 Plus Developer Guide
(continued)
{0,127,0};
Not for Distribution
1035
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