Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RsIsOpen - method of object PmaAdo

Description:
Testing the existence of the AdoRecordset object with defined identifier.
Syntax:
RsIsOpen(sId)
Calling:
b = oDb.RsIsOpen(sId)
Parameters:
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 object with defined identifier doesn't exist. It means that it was not opened or it was already closed by calling the RsClose method.
Note:
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 position of current record 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:
Example:
Testing 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"))
//...

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice