Filter
Produce an array by filtering an existing array.
Syntax
Filter (SourceArray, FilterString [,Switch [,Compare]])
Key
SourceArray An array to be filtered
FilterString A string of characters to find in SourceArray
Switch If True include items that match FilterString
If False include items that don't match FilterString
Compare vbBinaryCompare (0), vbTextCompare (1)
Example
arrDemo=Filter(vaVolcanoes, "Cinder cone")
WScript.Echo arrDemo(0)