RAD Studio VCL Reference
TDBDataSet.CheckOpen Method

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

function CheckOpen(Status: DBIResult): Boolean;
__fastcall Boolean CheckOpen(DBIResult Status);

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. 


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