RDD

DbFilter()

Return the current filter expression

Syntax

Signature
DbFilter() --> cFilter

Arguments

None.

Return value

The filter expression as text, or an empty string when no filter is active.

Description

DbFilter() returns the expression currently restricting records in the current work area. It does not evaluate or change the filter.

Notes

With no open work area, the result is an empty string.

Example

DbFilter.prg
PROCEDURE Main()

   QOut( "Filter: " + IIF( Empty( DbFilter() ), "EMPTY", DbFilter() ) )

   RETURN

Output

See also