Xbasic
A5_VIEWDUPRECS Function
Syntax
V a5_ViewDupRecs(C tablename ,C dup_key [,L run_query_to_find_dups ])
Arguments
- tablename
The name of the table to examine for duplicate key values.
- dup_key
An expression for generating key values.
- run_query_to_find_dups
Logical. .T. = The duplicates are already marked. .F. = The duplicates are not marked.
Description
Displays a dialog shows master and duplicate records.
Discussion
The A5_VIEWDUPRECS() function starts the Delete Duplicate Records Genie, which helps you find, review, and optionally delete duplicate records.
Example
The following example finds one record with one duplicate in the Customer table of AlphaSports.
? a5_viewduprecs("customer", "lastname", .f.)
This query does the same thing, but first marks the range of records before starting the genie.
dim tbl as P tbl = table.open("customer") tbl.unmark_range(".f.") tbl.mark_dups("lastname", ".t.") ? a5_viewduprecs("customer", "lastname", .t.)
Limitations
Desktop applications only.
See Also