Portopen property, Settings property – MagTek MTMICRImage User Manual

Page 9

Advertising
background image

Properties

5

PORTOPEN PROPERTY
Opens or closes the connection to the MICRImage.

Syntax

MICRImage.PortOpen [ = value]

The PortOpen property syntax has these parts:

Part

Description

Value

A Boolean value specifying the
status.


Example

MICRImage.PortOpen = True ‘Will open the device

MICRImage.PortOpen = False ‘Will close the device

Data Type

Read/Write

Boolean



SETTINGS PROPERTY
Sets or gets the baud rate, parity, data bit, and stop bit parameters.

Syntax

MICRImage.Settings [ = value]

The Settings property syntax has these parts:

Part

Description

Value

A string expression representing
the communications port settings,
as described below.


Remarks

If value is not valid when the port is opened, the MICRImage control generates error 380
(Invalid property value).

Value is composed of four settings separated by commas:

BaudRate,Parity,DataBits,StopBits

The default value is: ’115200,N,8,1’

Data Type

Read/Write

String

Advertising