Debug, Constants, 15 debug – EUCHNER ActiveX Module serial/USB User Manual
Page 15: Manual eks activex, Module serial / usb, 6 constants

Manual EKS ActiveX
®
Module serial / USB
3.5.15 Debug
Description
If the property Debug is set to the value true, the COM port is closed at the end of a
debug session in a programming environment.
Syntax
bool = object.Debug;
Comments
The
ActiveX
®
module is not correctly destructed at the end of the debug session in
some programming environments. The property Debug must, e. g., be set to true in
Microsoft Visual Basic
®
and Microsoft Excel
®
for the development of the application so
that the COM port is closed at the end of the debug session without explicitly calling the
method Close. If a debug session is terminated before the method Close is called, then
during the next debug session you will receive a LastState of 162 (DeviceInUse). If the
property Debug is true, then all COM ports for all ActiveX
®
instances are closed at the
end of the debug session.
Data
type
bool
Default
value
false
Information!
Please ensure you only set the property Debug to true during the debug session. If one control is
destructed on the use of several instances of the ActiveX
®
module, the COM port will be closed in all
other instances.
3.6 Constants
This section lists all constants that are used in the properties for the EKS ActiveX
®
module. The constants are
also listed in the description of the properties and methods in which they are used.
KeyStateConstants (used in the property KeyState)
Value
Constant
1 EKS_KEY_IN
2 EKS_KEY_OUT
3 EKS_KEY_OTHER
KeyTypeConstants (used in the property KeyType)
Value
Constant
1 EKS_KEY_READWRITE
8 EKS_KEY_READONLY
BaudRateConstants (used in the property BaudRate)
Value
Constant
9600 EKS_BAUD_9600
28800 EKS_BAUD_28800
098655-03-10/12
Subject to technical modifications
Page 15
/
20