Promotic
WikipediaLinkedInYoutubeTwitterFacebook

EndOfTransfer - method of object PmData

Description:
Method fires the onEndOfTransfer event with parameters: pEvent.Source = 0 (i.e. local source) pEvent.Error = 0 (i.e. without error).
Syntax:
EndOfTransfer
Calling:
oData.EndOfTransfer
Note:

It is suitable to call this method, for example, in the case when 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 the EndOfTransfer method is called, then the data can be processed in the onEndOfTransfer event consistently.

Calling this method is synchronous, i.e. the algorithm in the onEndOfTransfer event it performed first and then the statements after calling the method, are performed.

Example:
At first the data of the object are set first, and then the EndOfTransfer method is called as a flag that everything is ready and the data can be processed in the onEndOfTransfer event.
oData.Item("d1").Value = 3.14
oData.Item("d2").Value = 56
..
oData.Item("d33").Value = 34.2
oData.EndOfTransfer
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice