Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems


ADO Collections Clear Method

Removes all of the objects in a collection.

Clear Method Applies To

ADO Errors Collection

Clear Method Syntax


Clear Method Remarks

Use the Clear method on the Errors collection to remove all existing ADO Error Object objects from the collection. When an error occurs, ADO automatically clears the Errors collection and fills it with Error objects based on the new error. However, some properties and methods return warnings that appear as Error objects in the Errors collection but do not halt a program's execution. Before you call the ADO Recordset Object Resync Method, ADO Recordset Object UpdateBatch Method, or ADO Recordset Object CancelBatch Method methods on an ADO Recordset Object or before you set the ADO Recordset Object Filter Property on a Recordset object, call the Clear method on the Errors collection. Doing so enables you to read the ADO Collections Count Property of the Errors collection to test for returned warnings as a result of these specific calls.

Clear Method Examples

See the ADO Command Object Execute Method.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.