Please I have this function
the index 1 is on DTOS(DATA)+CONCORSO
before the filter I see all archive

the filter seems good

After the filter it not show any records , why ?
#include "fivewin.ch"
request dbfcdx
Function test
local oDbf
local cdbfPath:= cFilePath(GetModuleFileName( GetInstance() )) + "Data\"
local nYear:= year(date())
local cFilter:= "LTRIM(STR(YEAR(FIELD->DATA)))= '" + ltrim(str(nyear)) + "'"
oDbf:= TDatabase():Open( , cdbfPath+"LOTTO", "DBFCDX", .T. )
oDbf:setorder(1)
oDbf:GoTop()
xbrowser odbf
oDbf:SetFilter(cFilter)
oDbf:GoTop()
xbrowser odbf
return nilbefore the filter I see all archive

the filter seems good

After the filter it not show any records , why ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

