|
MoreDtaAvailable Function
Description
Returns true if there is more data received but not has been read yet. This situation could be possible when you decide to not read received data when it arrives.
Definition
Public Function MoreDataAvailable() as Boolean
Example
The following code demonstrate situation when received data not read due to application busy. And read the data using MoreDataAvailable function later
Private m_isBusy as Boolean Private Sub DoSomeThing() m_isBusy = True ' do something m_isBusy = False ' read all data messages until MoreDataAvailable returns FALSE Do While ComTL.MoreDataAvailable MsgBox ComTL.ReadData Loop End Sub
Private Sub ComTL_MsgArrived() if m_isBusy Then Exit Sub MsgBox ComTL.ReadData End Sub
|