fnUnionOfSets() DESCRIPTION This function takes two arrays or delimited string lists and returns an array of unique elements which represent all members contained in both sets. This function used a global variable to return the result owing to VBscripts inability to return more than one value to a function SYNTAX fnUnionOfSets(setFirst, setSecond) EXAMPLE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> ' This sample code is completely bogus ' sorry. ' fnUnionOfSets(aaFirstSet, aaSecondSet) s = fnDisplayArray(aaResultSet); response.write(s); '--<--<--<--<--<--<--<--<--< %> RESULTS ??? PARAMETERS setFirst {array/StringList/value, required} The first set in the union setFirst {array/StringList/value, required} The second set in the union STATUS I never got round to writing this function. I did write a similar function for JavaScript which is located at http://www.geocities.com/matth3wbishop/eg/javascript/ DEPENDENCIES fnErrorMessage.asp PROGRAMMER Matthew Bishop matth3wbishop@yahoo.com LOCATION http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ LANGUAGE MS Jscript COMMENTS: This function was going to be part of a complete set manipulation ASP function library. It is part of my programming philosophy that good set-manipulation functions are the true basis for a useful function API