Events – WD802Term ActiveX

WD802term events occur when a specific condition is met. When an event is "fired", an event handler function in your application is called.

Though the details of exactly how it is done varies from one programming environment to the next, the source code skeletons for the various event handlers are automatically generated and inserted into your source code for you. See the samples for more specific information.

Each event passes relevant information to your event handler function. For example, OnTermData passes the data that was keyed or scanned into the terminal.

Terminal ID is always passed as 0-999.

Once you have the event handler skeletons, you can proceed to add whatever functionality you desire to each event.

Before any WD802term events will fire, you must make sure to turn the Server on by calling

WD802Term.InitializeServer

WD802Term.ServerActive = True

OnServerActivate

Data passed:

none

Event:

Called when the ServerActive property is set to

 

True immediately after the Server begins listening

 

for terminals.

OnTermSignIn

 

Data passed:

terminal

Event:

A terminal has signed in. Terminal ID is passed in

 

terminal.

OnTermSignOut

 

Data passed:

terminal

Event:

A terminal has signed out. Terminal ID is passed in

 

terminal.

OnTermData

 

Data passed:

terminal, data

Event:

A terminal has sent data in response to an Input

 

method call.

6-14

Page 51
Image 51
Worth Data 802 RF user manual Events WD802Term ActiveX, Terminal, data