Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking duplicate values
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Checking duplicate values
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01335071
Message ID:
01335071
Vues:
56
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")
**********************************************************
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform