Data.Win.ADODB.TCursorOption

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TCursorOption = (coHoldRecords, coMovePrevious, coAddNew, coDelete, coUpdate,
coBookmark, coApproxPosition, coUpdateBatch, coResync, coNotify, coFind,
coSeek, coIndex);

C++

enum DECLSPEC_DENUM TCursorOption : unsigned char { coHoldRecords, coMovePrevious, coAddNew, coDelete, coUpdate, coBookmark, coApproxPosition, coUpdateBatch, coResync, coNotify, coFind, coSeek, coIndex };

Properties

Type Visibility Source Unit Parent
enum public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB Data.Win.ADODB

Description

TCursorOptions values indicate the functionality a recordset provides.

TCursorOptions values are individual options the Supports method checks for. Include one or more of these values as a set for the CursorOptions parameter of Supports.

The constants of the TCursorOptions type correspond directly with the CursorOptions parameter of the Supports method of the ADO Recordset object. See the Microsoft Data Access SDK help for information on these values and their effects.

TCursorOptions consists of the eleven constants summarized in the following table:



Cursor Option Meaning

coHoldRecords

More records can be retrieved or the position of the next retrieve can be changed without committing pending changes.

coMovePrevious

The pointer in the ADO Recordset object can be moved backwards without using bookmarks.

coAddNew

The recordset supports adding new records.

coDelete

The recordset supports deleting existing records.

coUpdate

The recordset supports modifying existing records.

coBookmark

The Bookmark property of the Recordset object can be used to move to or access specific records.

coApproxPosition

The recordset supports use of the RecNo property of the ADO dataset component.

coUpdateBatch

Batch updating (using the UpdateBatch and CancelBatch methods) can be used to transmit changes to the provider in groups.

coResync

The data in the cursor can be updated with the Resync method.

coNotify

The recordset supports notifications and returns events.

coFind

The Locate method can be used with the ADO dataset component.

coSeek

The Seek method can be used to search for a row in a dataset.

coIndex

The IndexName property of the ADO dataset component can be used to specify an index.



See Also