OOFILE | Downloads | Purchasing | Press | Services | Company Information | Soapbox | References | F.A.Q. | HOME |
This sample demonstrates searching and sorting by different types of fields, and how to parameterize calls, passing in table and field references. See also ooftst07 The only difference between ooftst17 and ooftst07 is that in ooftst07, we define the constant "TEST_INDICES". this means that ooftst17 does the same test as ooftst07 but the fields are all non-indexed..
#include "oofile.h" // the general oofile library #include "ooftst07.h" // the procedures for testing of fields
int main()
{
cout << "OOFILE Validation Suite - Test 17\n"
<< "Simple test to demonstrate comparative searches" << endl
<< "using a database identical to ooftst07 except without indices" << endl;
This code determines what platform we are running under and assigns a filename accordingly.
#ifdef TESTING_DBASE #ifdef _Macintosh const char* kExistsName = ":ooftst17:People.dbf"; const char* kDatabaseName = ":ooftst17:"; #else const char* kExistsName = "People.dbf" const char* kDatabaseName = ""; #endif
#else const char* kDatabaseName = "ooftst17.db"; const char* kExistsName = kDatabaseName; #endif
Now we run the tests.
doTest07(kExistsName, kDatabaseName); return EXIT_SUCCESS; }
(c) Copyright A.D. Software 1994-2000 (All Rights Reserved).
Last Updated: 9th September 2001