Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetReady - method of object PmCommMsg

Description:
Finding out if the PmCommMsg object is ready to transfer the message.
Syntax:
GetReady As Boolean
Calling:
b = oCommMsg.GetReady()
Return Values:
true - The object is ready to transfer the message (the Run method can be called)
false - The object is not ready to transfer the message (the message from the previous calling the Run method is still transferring)
Note:
The PmCommMsg object gets in the transfer data state by the Run method. During the transfer the Run method cannot be re-called over the object and the GetReady method then returns the value false. After the transfer (i.e. after the onEndOfTransfer event fires) the Run method can be called again and the GetReady method returns the value true.
See also:
- Run
Example:
If oCommMsg.GetReady() Then
  oCommMsg.Run
Else
  Pm.Debug "CommMsg is not ready (the previous message is being transmitted)"
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice