Activate a set of conditions for which certain records of the server are to be excluded.
) Æ lSuccess
<oArrayServer>:SetFilter(<cbFilterCondition>) Æ lSuccess
|<cFilterCondition>||The condition for which records are to be excluded. If the argument <cbFilterCondition> is not indicated, the string is converted into a _Codeblock statement as follows:|
|<cbFilterCondition>||The Condition as a CodeBlock for which records are to be excluded.|
|Data type:||Codeblock | _Codeblock-Object|
|lSuccess||A logical value that indicates whether the filter was activated.|
|TRUE||The filter was activated.|
|FALSE||The filter could not be activated.|
With a filter condition, records can be excluded from subsequent operations that do not correspond to the condition.
In order to be able to access in the condition <cFilterCondition> or <cbFilterCondition> to fields, accesses or methods of the server, the literal "Server" followed by a colon must be placed in front of these (see sample).
The following sample creates a filter on all records in those the field LASTNAME begins with the character "B". The condition is specified as string.
The following sample creates a filter on all records in those the field LASTNAME begins with the character "B". The condition is specified as code block.