sdpsc
Technical User
- Feb 10, 2001
- 76
I want the below code to loop through each field and index in (thus showing the unique count for each field). But it just counts 1 unique for each field (which is not accurate). How can I do this? Is there a completely different way? Thanks.
numFields=aFields(aColumns)
set safety off
set stat on
For i=1 To numFields
index on Upper(aColumns(i,1)) to temp uniq
? Upper(aColumns(i,1))
? 'Unique records:'
count
? ''
set index to
Next
numFields=aFields(aColumns)
set safety off
set stat on
For i=1 To numFields
index on Upper(aColumns(i,1)) to temp uniq
? Upper(aColumns(i,1))
? 'Unique records:'
count
? ''
set index to
Next