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.
errors.Clear
Arguments
None
Return Value
None
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.