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
<% Language = VBScript %>
<% Response.Buffer = true %>
<!--#include file = "fnErrorMessage" -->
<html>
<head></head>
<body>
<%
'-->-->-->-->-->-->-->-->
   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
'--<--<--<--<--<--<--<--<
%>
</body>
<html>
untested code ...
Results
Parameters
  1. sFunctionName {string, required} The name of the function in which the error occurred
  2. sParameterName {string} The name of the function parameter which was at fault (if any)
  3. sDescription {string, optional} A description of the problem which occurred.
Status
Working, tested 70%
Dependencies
None
Programmer
m bishop (mailto:matth3wbishop@yahoo.com)
Dates
Jan 2000
Source Code File
http://www.geocities.com/matth3wbishop/ asp/fnErrorMessage.asp
Documentation File
http://www.geocities.com/matth3wbishop/ asp/fnErrorMessageDOC.html
Language
Microsoft Jscript
System
Microsoft ASP on Internet Information Server
Comments
  1. This is used by many other functions
  2. This function uses Html Table attributes (e.g. bgcolor, valign, ...) to produce the formatted error message. These attributes are deprecated in Html 4, and so this function should be re-written using a 'style' tag.
Additional Examples
1