Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking duplicate values
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Checking duplicate values
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01335071
Message ID:
01335071
Views:
57
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
Map
View

Click here to load this message in the networking platform