Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



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.



ContentsPreviousNextIndex