OnInterface Event (ADriver)

Occurs when a driver interface fires an event.

Syntax

Object.OnInterface (enInterfaceType, lAddress, enCause)

The OnInterface event syntax has the following parts:

 

Name

Type

Description

Object

ADriver

ADriver object

enInterfaceType

Val enumAInterfaceType

An enum data type of Long constant

lAddress

Val Long

Device Address

enCause

Val enumAInterfaceEvents

An enum data type of Long constant

Example

The following is an example of how to use the OnInterface event:

Example

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

Applies to

ADriver

See Also

InterfaceEvents, InterfaceInfo, InterfaceType, ModuleType