This function uses specified criteria to filter a one-dimensional array of strings.
Filter(inputStrings, value, [ include], [ compare])
Constant |
Value |
Description |
vbBinaryCompare | 0 | Perform a binary comparison |
vbTextCompare | 1 | Perform a textual comparison |
vbDatabaseCompare | 2 | Not supported |
Returns a zero-based array containing a subset of a specified string array.
If no matches of value are found within inputStrings, Filter returns an empty array. An error occurs if inputStrings is Null or if it is not a one-dimensional array.
The array returned by Filter has one element for each matched item.