RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ADODB.TCursorOptions Type

TCursorOptions indicates the functionality provided by a recordset.

Pascal
TCursorOptions = set of TCursorOption;
C++
TCursorOption TCursorOptions;

TCursorOptions is a set of individual options that 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 to 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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!