Bde.DBTables.TDBDataSet.CheckOpen

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TDBDataSet

Delphi

function CheckOpen(Status: DBIResult): Boolean;

C++

bool __fastcall CheckOpen(Bde::DBIResult Status);

Description

Checks the result of a call to the Borland Database Engine (BDE).

Call CheckOpen to determine if a call to the BDE returns an error when an attempt is made to access a dataset. Status is the return result of a previous call to the BDE.

CheckOpen returns true if access is successful. If Status indicates insufficient table rights when accessing a Paradox or dBASE table, CheckOpen calls the database session's GetPassword method to prompt the user for a password. If the dialog is successful, CheckOpen returns true.

Otherwise CheckOpen returns false, indicating that dataset access failed.

See Also