Occurs when a driver interface fires an event.
Object.OnInterface (enInterfaceType, lAddress, enCause)
The OnInterface event syntax has the following parts:
Name |
Type |
Description |
Object |
ADriver |
ADriver object |
enInterfaceType |
An enum data type of Long constant |
|
lAddress |
Val Long |
Device Address |
enCause |
An enum data type of Long constant |
The following is an example of how to use the OnInterface event:
The following is an example of how to use the OnInterface event:
If enInterfaceType=aioWinsock and enCause=aioWsRead
Driver Input(str)
m_frmPanel.OnReceive(str)
Endif