Update cookies preferences
Promotic

EndOfTransfer - method of the PmaData object

Description:
After calling this method, the onEndOfTransfer event is triggered with parameters: pEvent.Source = 0 (i.e. local source) pEvent.Error = 0 (i.e. without error).
Syntax:
Empty EndOfTransfer()
Note:
Calling this method is suitable, for example, if you want to process the data of the object on one place. If the data are received from the communication or if the data are set locally and then EndOfTransfer method is called, then the data can be processed in the onEndOfTransfer event consistently.
Calling this method is synchronous, it means that the algorithm in the onEndOfTransfer event it performed first and then the statements after calling the method, are performed.
See also:
Example:
At first the data of the object are set first, and then EndOfTransfer method is called as a flag that everything is ready and the data can be processed in the onEndOfTransfer event.
JavaScriptVBScriptSelect and copy to clipboard

var oData = pMe.Pm("/Data");
oData.Item("d1").Value = 3.14;
oData.Item("d2").Value = 56;
// ...
oData.Item("d33").Value = 34.2;
oData.EndOfTransfer();
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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