EndOfTransfer - method of the PmaDataTable object
Description:
After the method calling, 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 locally set, and then
EndOfTransfer method is called, then the data can be processed in the same way in the
onEndOfTransfer event.
Calling the method is
synchronous, it means that at first the algorithm is performed in the
onEndOfTransfer event and then it is continued on the statements after calling the method.
Example:
At first the data of the object are set and then
EndOfTransfer method is called as the indication that everything is ready and that the data can be processed in the
onEndOfTransfer event.
JavaScriptVBScriptSelect and copy to clipboard
var oDataTable = pMe.Pm("/DataTable");
oDataTable.SetCellValue(0, 0, 8);
oDataTable.SetCellValue(1, 0, 3.1);
// . . .
oDataTable.SetCellValue(4, 4, 12.3);
oDataTable.EndOfTransfer();
Dim oDataTable
Set oDataTable = pMe.Pm("/DataTable")
oDataTable.SetCellValue 0, 0, 8
oDataTable.SetCellValue 1, 0, 3.1
' . . .
oDataTable.SetCellValue 4, 4, 12.3
oDataTable.EndOfTransfer