I recommend to dig in this forum, the DBPro forum, the DBPro help files, the Code Snippets forum, and all around again.
I haven't tested this, it is IanM's code & tips (posted in this forum):
Quote: "The globstruct has the following items included:"
bool checklistexists;
bool checklisthasvalues;
bool checklisthasstrings;
int checklistqty;
DWORD dwChecklistArraySize;
GlobChecklistStruct* checklist;
Quote: "The checklist variable is a pointer to an array of GlobCheclistStruct items containing the data - the definition of that structure is also in globstruct.h near the top.
Here's a quick 2 minute example:"
#include "DarkGDK.h"
#include <GlobStruct.h>
void DarkGDK()
{
dbPerformCheckListForDisplayModes();
while ( LoopGDK() && !dbSpaceKey() )
{
dbCLS();
dbSetCursor(0, 0);
for (int i = 0; i < g_pGlob->checklistqty; ++i)
{
dbPrint(g_pGlob->checklist[i].string);
}
dbSync();
}
}