Creates a new expression that filters the records in the container, based on the value of a field in the record.
The container is filtered by the Caplin Refiner module at Caplin Transformer (see How to use Container Filtering and Sorting).
Declaration Syntax
C# | Visual Basic | Visual C++ |
IFieldFilterExpression CreateFieldFilterExpression( string field, FieldFilterExpressionOperator oper, string value )
Function CreateFieldFilterExpression ( _ field As String, _ oper As FieldFilterExpressionOperator, _ value As String _ ) As IFieldFilterExpression
IFieldFilterExpression^ CreateFieldFilterExpression( String^ field, FieldFilterExpressionOperator oper, String^ value )
Parameters
- field (String)
- The field in the filter expression.
- oper (FieldFilterExpressionOperator)
- The operator in the filter expression.
- value (String)
- The field value in the filter expression.
Return Value
A new IFieldFilterExpression representing the specified filter.
Examples
Assume only container records where the "bid" field is greater than 5 are required. The filter expression for this is therefore "bid > 5", so the parameters supplied to
CreateFieldFilterExpression() are:
CopyC#
field = "bid" operator = GreaterThan value = "5"