guess i have use
Code: Select all
SET FILTER TO FIELD->AAA = "ABC" .AND. FIELD->BBB = "EFG"also how to "remove" Part of DBFOLTER()
Moderator: Rathinagiri
Code: Select all
SET FILTER TO FIELD->AAA = "ABC" .AND. FIELD->BBB = "EFG"hm ... DBFLTER() return String not Codebock as i expectmol wrote: ↑Wed Aug 10, 2022 6:49 pmCode: Select all
cNewFilter := dbFilter() + ".and." + cExpression Set Filter to set filter to cNewFilter
you are right, it is (much) more work to "remove" a Part than create a New FILTERfor changing something, the best way is removing defined filter and defining it again, in my opinion.
Code: Select all
cNewFilter := dbFilter() + ".and." + &cExpression
or this
cNewFilter := dbFilter() + .and. + &cExpression
Code: Select all
cNewFilter := "{||" + dbFilter() +".and." + cExpresion +"}"
bNewFilter := &cNewFilter