ComponentOne True DBGrid Pro 8
Clear Method (Errors)

 

Object Reference> True DBGrid Methods> Clear Method (Errors)

Clear Method (Errors)

For an Errors collection associated with an OLE DB grid, the Clear method removes all of its Error objects.

Syntax

errors.Clear

Arguments

None

Return Value

None

Remarks

The grid Errors collection is filled with Error objects when an error occurs. The information in the Errors collection is accessible in the grid's Error event and from then onward, until: (1) another error occurs, or (2) the user calls TDBGrid.Errors.Clear. This behavior mimics the standard ADO Errors collection: it is not cleared automatically. The fact that the grid's Errors collection is non-empty does not necessarily mean that an error just occurred; it only means that there was an error once and the collection has not been cleared.

See Also

Error Object, Errors Collection

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback