ClearError

Description

Clears the list of error objects.

Applies to

PSConnectionClass objects

Syntax

connectionobject.ClearError( )

Argument

Description

connectionobject

A variable that contains a reference to an instance of PSConnectionClass

Returns

None

Usage

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

Examples

Example 1

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.

See also

CreateConnection