filter question
filter question
Is there a way to test if a filter is active in a workarea? My thought is to have a hot key that toggles a filter on or off.
There are only 10 kinds of people - those who understand binary and those who don't
Re: filter question
Hi, Bruce.
DbFilter() returns an empty string if no filter is set or the filter condition if a filter is set.
DbFilter() returns an empty string if no filter is set or the filter condition if a filter is set.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: filter question
Hi,
I didn't test it, but according to the docs you have to specify it.
I'm using the cFilter parameter to define a value for the filter, I'm using it as a cargo.
In the docs there is mentioned that cFilter has to be the same logical expression as bFilter. This is not true, you can put other code in it.
For example:
I didn't test it, but according to the docs you have to specify it.
Code: Select all
DbSetFilter( <bFilter>, [<cFilter>] )
In the docs there is mentioned that cFilter has to be the same logical expression as bFilter. This is not true, you can put other code in it.
For example:
Code: Select all
dbSetfilter( {|| Code block A} , "A" )
dbSetfilter( {|| Code block B} , "B" )
dbSetfilter( {|| Code block C} , "C" )
cFilter := dbfilter()
if cFilter == "A"
...
elseif cFilter == "B"
...
Re: filter question
dbfilter did EXACTLY what I wanted - thanks
There are only 10 kinds of people - those who understand binary and those who don't