home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-06-01 | 802 b | 21 lines | [TEXT/ttxt] |
- GOTCHAS.TXT
- This document records a few common mistakes made by people using OOFILE. Over time, we will try to minimize them with OOF_Debug tests:
-
- FAILURE TO CLOSE A TABLE DECLARATION
-
- The macro CLASS_TABLE is used to start the class declaration for a dbTable class. However, you should still have the
- };
- at the end of the declaration, just like any other class.
-
-
-
- USING SINGLE = IN SEARCHES
- This is the classic mistake - instead of searching for People with a Salary of 50000, we are actually assigning to the current record.
-
- People[People.Salary=50000];
- cout << People << endl << endl;
-
- If you have OOF_Debug defined, the default setting of requiring an explicit save will catch this error, and give you a message like:
-
- "ContextChange called on dirty record without saving: file name: People"
-