Deviceopen – MagTek MTBLUETOOTH.OCX User Manual

Page 6

Advertising
background image

MTBLUETOOTH.OCX Programming Reference Manual

2

Data Type

String


DEVICEOPEN
Sets or returns the status of the COM port.

Syntax

CtlMTBluetooth1.DeviceOpen[ = value]

The DeviceOpen property syntax has these parts:

Part

Description

Value A Boolean value specifying the status of the port.

Remarks

You can open the Port by setting the DeviceOpenproperty to True. You can close the port by
setting the DeviceOpenproperty to False.

Data Type

Boolean


DEVICEPORT
Sets or returns the communications port number.

Syntax

CtlMTBluetooth1.DevicePort[ = value]

The DevicePort property syntax has these parts:

Part

Description

Value An integer value specifying the port number.

Remarks

You can set Value to any number between 1 and 16 at design time (the default is 1).

Example

CtlMTBluetooth1.DevicePort = 1

Assigns Com1 to the DevicePort property.

Data Type

Integer



DEVICESERIALNUM
Returns the device serial number from the last card read.

Syntax

[variable =] CtlMTBluetooth1.DeviceSerialNum

Advertising