Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I check duplicates in TableBuffer View?
Message
De
31/10/2001 04:01:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/10/2001 16:15:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00575321
Message ID:
00575498
Vues:
24
>Hi All,
>
>My view is table buffered. and I have to check duplicates in it. I wana to check duplicates on cCode + dDate. In one of my other form where i am checking duplicate on only one field I was using
>
>Copy all to array for field... and then
>for i = 1 to alen(array)
>scan the array
>endfor
>
>but here i wana to check duplicates on two fields. code + date. can anyone give me idea please?
>
>Thanks in advance
>Mark
local lcTemp, lnDupes
external array arrDupes
lcTemp = sys(2015)+'.dbf'
copy fields code, date to (lcTemp)
select code, date from (lcTemp) ;
 having cnt(*) > 1 group by 1,2 ;
 into array arrDupes
lnDupes = _Tally
use in (lcTemp)
erase (lcTemp)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform