General information
Category:
Coding, syntax & commands
Title:
Checking duplicate values
Checking duplicate values
I created two cursors
But it takes too long because VFP has to scan all records in both cursors
It there a better method the this below ?
************************************************************
SELECT AP
SCAN
SELECT AP2
aax = 0
SCAN FOR AP2.ID2 = AP.ID2
aax = aax + 1
IF aax > 1
= MESSAGEBOX("Duplicated record")
endif
ENDSCAN
ENDSCAN
= MESSAGEBOX ("endSCAN")
**********************************************************
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only