fnCompareStrings() DESCRIPTION This function compares two strings and returns true if they are the same and false if they are not. Two optional parameters are available to determine conditions of the comparison. SYNTAX fnCompareStrings(sFirst, sSecond, [SeeWhiteSpace], [bCaseSensitive]) EXAMPLE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> dim sOne dim sTwo dim sThree sOne = "uno" sTwo = "duo" sThree = "tres" fnCompareStrings sOne, sTwo '--<--<--<--<--<--<--<--<--< %> RESULTS False PARAMETERS sFirst {string, required} The first string to compare sSecond {string, required} The second string to compare. bSeeWhiteSpace {boolean, default=false} If false strips all 'bordering' white space before making a comparison of the strings e.g. fnCompareStrings("hello ", " hello") returns true e.g. fnCompareStrings("what is the time", "what is the time") returns false bCaseSensitive {boolean, default=false} Determines if the strings are compared in a case sensitive manner. e.g fnCompareStrings("Hello", "hELLo", false, true) returns false 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) b) c)