Bde.DBTables.TDBDataSet.CheckOpen
Delphi
function CheckOpen(Status: DBIResult): Boolean;
C++
bool __fastcall CheckOpen(Bde::DBIResult Status);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TDBDataSet |
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.