Promotic

DbIsOpen - method of the PmaAdo object

Description:
Test whether the PmaAdo object has the database connection.
Syntax:
Boolean DbIsOpen()
Return value:
true - The PmaAdo object is connected to the database defined by means of the DbConnectionString property (e.g. by calling the DbOpen method).
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.
See also:
- PmaAdo.DbOpen (method)
- PmaAdo.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())
{
// ...
}

History:
Pm8.01.00: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.