Справочник Пользователя для Worth Data 802 RF

Скачать
Страница из 119
6-7
Concepts – WD802Term ActiveX 
Drop-in components are tools that are added to your programming 
environment "tool kit". Only the ActiveX variety are widely compatible 
with almost all development environments. When you use drop-in 
components in your program you will follow the standard object-oriented 
programming paradigm that uses properties, methods, and events to 
implement the functionality of the drop-in component. 
Properties are the various configuration variables used by the drop-in 
component. An example of a property is the 
ServerActive
 setting. 
Methods are function calls used to issue commands and access features of 
the drop-in component. An example of a method is sending an 
Input
 
command to the terminal. 
Events are function definitions placed in your application’s source code. 
The function definitions in your source code are called Event Handlers. The 
skeleton structure of the event handler’s source code is automatically 
generated. The code in the Event Handler is called ("fired") by the drop-in 
component when a specific event occurs. An example of an event is when a 
terminal returns data and the 
OnTermData
 event is fired. 
The details of how to access Properties/Methods/Events varies between 
development platforms. Details of how it works in some of the most popular 
platforms is illustrated in the samples included with the RF Utilities CD or 
available for download from our website at 
www.barcodehq.com 
Properties – WD802Term ActiveX 
Properties are the various configuration variables used by the 
WD802Term 
control. They are directly assignable in your application (eg. 
"WD802term.ServerOn = true") and can be set in your development 
environment’s object browser. 
Note that your development environment may show more properties for the 
WD802Term control than are listed here. This is normal. You may ignore pro-
perties you see listed in your development environment that are not listed here. 
ActiveTerminal 
Valid values:   0-999 
Function: 
This is the terminal ID (0-999) to which method 
call instructions are directed. 
Terminal ID "number" is mapped to actual terminal 
IP address dynamically. 
See method "GetIPAddress" to get terminal IP 
address associated with an ID.