Clears the list of error objects.
PSConnectionClass objects
connectionobject.ClearError( )
Argument |
Description |
---|---|
connectionobject |
A variable that contains a reference to an instance of PSConnectionClass |
None
At runtime, ClearError has the following behavior:
Application server |
Runtime behavior |
---|---|
ASP |
Calls the Clear method of the Errors collection to remove all of the errors in the connection object's error object list |
JSP |
Destroys the current error object by setting it to null |
The following example clears the list of errors for the myconnect connection object:
myconnect.ClearError();
For a JSP target, you must declare “myconnect” as a variable of type PSConnectionClass before instantiating the connection object (in a psServer.CreateConnection call) and calling its ClearError method.