Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check duplicates in TableBuffer View?
Message
From
31/10/2001 04:01:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/10/2001 16:15:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00575321
Message ID:
00575498
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform