Microsoft KB Archive/90959

= INFO: Using INDEX ON  UNIQUE to Create Unique Index =

Article ID: 90959

Article Last Modified on 2/10/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxBASE+ 2.5 for MS-DOS

-



This article was previously published under Q90959



The &quot;INDEX ON TO  | TAG UNIQUE&quot; command creates an index in which only one record appears for each key value in the database.

The UNIQUE qualifier specifies that only the first record with a particular index key is included in an IDX or CDX index tag. You can use a UNIQUE index to prevent access or display of duplicate records because all subsequent records with the same index keys are excluded from the index file.

Using the UNIQUE qualifier in the INDEX command has the same effect as issuing the SET UNIQUE ON command before issuing the INDEX or REINDEX command. If a key is deleted, it is removed from the index, even if the file contains other occurrences of the deleted key.



SUMMARY
Additional query words: VFoxWin FoxDos FoxWin 1.00 fox base tag

Keywords: kbinfo KB90959

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.