How to Enforce Uniqueness in Visual FoxPro Memo FieldsID: Q148894 3.00 3.00b WINDOWS kbprg kbhowto The information in this article applies to:
SUMMARYThis article shows by example how to enforce uniqueness in memo fields.
MORE INFORMATION
Example ScenarioWhen you have a long character field that happens to be rarely filled, it might be better to store the data in a memo field instead of a character field. The memo field takes up only four bytes in the table, and the large character field can now be removed from the structure. You can use the following step-by-step procedure to create a unique index tag on just a portion of the data in the memo field. The benefits of this process are:
Step-by-Step Procedure1. Create a new database (.dbc file):
2. Add a table to the database:
3. Add a Unique Index Tag to the Table:
4. Add several records to the table with exactly the same content in the
Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbprg kbhowto
KBSubcategory: FxprgGeneral
|
Last Reviewed: April 2, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |