Difference between revisions of "DBFILTER()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return the filter expression | Function to return the filter expression | ||
− | |||
==Syntax== | ==Syntax== | ||
DBFILTER([<workarea | alias>]) | DBFILTER([<workarea | alias>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[FILTER()]], [[SET DELETED]], [[SET FILTER]] | + | [[FILTER()]], [[SET DELETED]], [[SET FILTER]] |
− | + | ||
==Description== | ==Description== | ||
The DBFILTER() function will return, as a character string, the current filter condition or a null string if no filter is set. If the <workarea | alias> is specified, then the function will return the active filter condition for the specified alias. The command SET FILTER ON | OFF has no affect on the DBFILTER() function. | The DBFILTER() function will return, as a character string, the current filter condition or a null string if no filter is set. If the <workarea | alias> is specified, then the function will return the active filter condition for the specified alias. The command SET FILTER ON | OFF has no affect on the DBFILTER() function. | ||
− | |||
==Example== | ==Example== | ||
Line 25: | Line 21: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 08:16, 10 February 2012
Contents
Purpose
Function to return the filter expression
Syntax
DBFILTER([<workarea | alias>])
See Also
FILTER(), SET DELETED, SET FILTER
Description
The DBFILTER() function will return, as a character string, the current filter condition or a null string if no filter is set. If the <workarea | alias> is specified, then the function will return the active filter condition for the specified alias. The command SET FILTER ON | OFF has no affect on the DBFILTER() function.
Example
use patrons set filter to event="BALLET" ? "[" + dbfilter() + "]" [event="BALLET"] ? type("dbfilter()") C