Advantage Concepts
Visual FoxPro (VFP) tables offer support for candidate indexes, which provide enforcement of data uniqueness in the table. When creating the index order, if a record is found that would cause a non-unique key to be placed in the index, an error will be generated and the index order will not be created. If a unique index is successfully created, and a new record is inserted or updated in which the key produced from the record is not unique, an error will be returned and the record update will not be allowed. At that point, the record must be modified such that the key produced is unique. If the record change is not desired or possible, the update must be canceled.