DbServer.Filter Property | |
A string representing the current active filter.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY Filter AS USUAL GET SET
public virtual Usual Filter { get; set; }
Request Example
View SourceProperty Value
Type:
UsualA string representing the current active filter.
Remarks
A string representing the current active filter. If no filter has been set, NULL_STRING is returned. Assigning a string or a code block to DBServer:Filter is equivalent to calling DBSetFilter().
Examples
This example displays the current Filter condition. Also, if you already have an existing filter condition, you might want to retrieve its :Filter value first, then if your new SetFilter() condition fails, you can reset it back to it's prior filter expression:
1CLASS Sales INHERIT DBServer
2...
3FUNCTION IgnoreDeleted()
4LOCAL oDBSales AS Sales
5oDBSales := Sales{}
6oDBSales:SetFilter(!oDBSales:Deleted)
7oDBSales:GoTop()
8? oDBSales:Filter
9.
10. <Process records>
11.
12oDBSales:ClearFilter()
13? oDBSales:Filter
See Also