DbIsOpen - method of the PmaAdo object
Description:
Test whether the PmaAdo object has the database connection.
Syntax:
Boolean DbIsOpen()
Return value:
false - The
PmaAdo object
is not connected to the database. It means that the database was not opened at all or it was disconnected by calling the
DbClose method.
Example:
Test whether the
PmaAdo object ("/TestAdoDb") is connected to the database.
JavaScriptVBScriptSelect and copy to clipboard
var oDb = pMe.Pm("/TestAdoDb");
if (oDb.DbIsOpen())
{
// ...
}
Dim oDb
Set oDb = pMe.Pm("/TestAdoDb")
If oDb.DbIsOpen() Then
' ...
End If