RsIsOpen - method of the PmaAdo object

Test of the existence of the AdoRecordset object with defined identifier.
Boolean RsIsOpen(String sId)
sId(String) The unique identifier that is used by the PmaAdo object to store the AdoRecordset object.
Return values:
true - The AdoRecordset object with defined identifier exists (e.g. by calling the methods RsOpen or DbExecute).
false - The AdoRecordset object with defined identifier does not exist. It means that it was not opened or it was already closed by calling the RsClose method.
The ADO Record object:
Depending on the specific ADO Provider it is possible, that a single row SQL query result will not be returned in the form of the AdoRecordset object containing a single record, but in the form of the AdoRecord object (represents the single row). Není to ale typické pro nejběžněji užívané ADO Provider. The AdoRecord object is usually returned by explicit operations, when the specific AdoRecord is returned from the existing AdoRecordset object. The AdoRecord object consists of multiple AdoField objects, the same way as the AdoRecordset object. The difference is that the methods for moving the current record position are not supported (e.g. MoveFirst). In order to keep the documntation simple, it will be referred only to the commonly returned AdoRecordset object, although in some special cases the system may also return the AdoRecord object.
See also:
- PmaAdo.RsOpen (method)
- PmaAdo.RsGet (method)
- PmaAdo.RsClose (method)
- PmaAdo.DbExecute (method)
Test whether the PmaAdo object ("/TestAdoDb") contains the stored AdoRecordset object with unique identifier ("table1").
JavaScriptVBScriptSelect and copy to clipboard

var oDb = pMe.Pm("/TestAdoDb");
if (oDb.RsIsOpen("table1"))
// ...

Pm8.01.00: Created
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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