fnErrorMessage() fnErrorMessage(...) DESCRIPTION This function displays an error message on a web page in a table format with the following information: the function name, the parameter name and the description of the error which occurred. SYNTAX fnErrorMessage(sFunctionName, sParam, sDescription) EXAMPLE UNTESTED CODE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnArgle function fnArgle(sAge, sAddress) if (sAge = "") then fnErrorMessage _ "fnArgle", "sName", _ "A required parameter was omitted from the" + "function." end if fnArgle = sAge end function '*** fnArgle '--<--<--<--<--<--<--<--<--< %> RESULTS ERROR: Function: fnArgle Parameter: sName DESCRIPTION: A required parameter was omitted from the function. PARAMETERS sFunctionName {string, required} The name of the function in which the error occurred sParameterName {string} The name of the function parameter which was at fault (if any) sDescription {string, optional}A description of the problem which occurred STATUS working, tested 70% PROGRAMMER Matthew Bishop DEPENDENCIES None LOCATION c:http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION c:\mjblibrary\aspscripts\sourceCode\fnErrorMessage.doc LANGUAGE Ms Jscript SEE ALSO dbug COMMENTS: small utility function