n = oCommMsg.GetCount(nType)
|nType||(Long) Specification of transmissions whose number we want to get:|
0 - Total number of all transmissions (successul and failed) in this object since application launch (sum of types 1 and 2)
1 - Total number of all successful transmissions in this object since application launch
2 - Number of all failed transmissions in this object since application launch
3 - Number of latest failed transmissions in this object. This number is set to 0 after every successful transmission.
If the parameter pEvent.Error = 0 in the onEndOfTransfer event, then it is "successful transmission" elsewhere it is "failed transmission".
If oCommMsg.GetCount(3) > 5 Then
'... The action for warning the non-functional communication