Creates a new expression that filters the records in the container based on the value of a field in the record.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IFieldFilterExpression CreateFieldFilterExpression( string field, FieldFilterExpressionOperator oper, string value )
Public Shared Function CreateFieldFilterExpression ( _ field As String, _ oper As FieldFilterExpressionOperator, _ value As String _ ) As IFieldFilterExpression
public: static 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
CreateFieldExpression() are:
CopyC#
field = "bid" operator = GreaterThan value = "5"