Data.Win.ADODB.TCustomADODataSet.Supports

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Supports(CursorOptions: TCursorOptions): Boolean;

C++

bool __fastcall Supports(TCursorOptions CursorOptions);

Properties

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

Description

Indicates whether a dataset supports certain types of operations.

Call Supports to determine whether the active recordset supports the cursor operations specified in CursorOptions. Supports will indicate the active recordset, as defined, will support such cursor functionality as adding new rows, using ADO bookmarks, deleting rows, and updating rows. Other cursor functionality can be specified.

CursorOptions specifies one or more TCursorOptions cursor operations.

If the recordset is active Supports returns a boolean whether the specified cursor operations are supported by the recordset. If all specified cursor operations are supported, Supports returns true, otherwise Supports returns false (one or more of the specified cursor operations are not supported by the recordset).