Creates a new expression that filters the records in the container based on the value of a field in the record.
![](../icons/collapse_all.gif)
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 )
![](../icons/collapse_all.gif)
- 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.
![](../icons/collapse_all.gif)
A new IFieldFilterExpression representing the specified filter.
![](../icons/collapse_all.gif)
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#
![](../icons/CopyCode.gif)
field = "bid" operator = GreaterThan value = "5"