fnIntersectionOfSets() fnIntersectionOfSets(...) DESCRIPTION This function compares two arrays or string lists and returns an array of all members which are common to both. The string lists are parsed into their elements. SYNTAX fnIntersectionOfSets(setFirst, setSecond, bCaseSensitive, bSeeWhiteSpace) EXAMPLE UNTESTED CODE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> dim sListA dim sListB dim aaIntersection sList = "one,two,three" sListB = "two,three,four" fnIntersectionOfSets(sListA, sListB) for ii = 0 to UBOUND(aaIntersection) Response.Write(aaIntersection(ii)) Response.Write("
") next '--<--<--<--<--<--<--<--<--< %> RESULTS two three PARAMETERS STATUS not written DEPENDENCIES fnErrorMessage [fnErrorMessage.asp] PROGRAMMER Matthew Bishop (matthew@massive.com.au or matth3wbishop@yahoo.com) LOCATION http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ LANGUAGE MS Jscript COMMENTS: a) VBscript cannot pass back more than one value from a function, and therefore the return values are also put in a global variable (array) called aaIntersection b) c)