IntersectStrings

Returns the intersection of two string arrays.

Syntax

Rhino.IntersectStrings (arrStrings0, arrStrings1 [, blnNoCase])

Parameters

arrStrings0

Required.  Array.  The first array of string values.

arrStrings1

Required.  Array.  The second array of string values.

blnNoCase

Optional.  Boolean.  The case sensitivity mode.  If omitted or True, a case insensitive comparison is performed.  If False, a case sensitive comparison is performed.

Returns

Array

The intersection of the two string arrays if successful.

Null

If not successful, or on error.

Example

Dim arr0, arr1, arr, str

arr0 = Array("A", "B", "C")

arr1 = Array("b", "B", "d")

arr = Rhino.IntersectStrings(arr0, arr1)

For Each str in arr

  Rhino.Print str

Next

Also See

UnionStrings