Antonio Linares wrote:Dear Silvio,
SET FILTER is very slow
Using an index with scopes should be better
with tdatabase I not Know How make it
IF nCount > 0
nInit:=oDbf:lastrec()-nCount
nEnd:= oDbf:lastrec()
ENDIF
oDbf:setscope(0,nInit)
oDbf:setscope(1,nEnd)
then for the year ?