Portopen, Carddata – MagTek MTPPSWIPE.OCX User Manual

Page 6

Advertising
background image

MTPPSwipe.OCX Programming Reference Manual

2

PORTOPEN
Sets or returns the status of the COM port.

Syntax

PortPowerSwipe.PortOpen[ = value]

The PortOpen 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 PortOpen property to True. You can close the port by
setting the PortOpen property to False.

The PortPowerSwipe control generates error 68 (Device unavailable) if the port does not exist
when you attempt to open it with the PortOpen property.

The PortPowerSwipe control generates error error 380 (Invalid property value) if the Settings
property is not valid when the port is opened.

Data Type

Boolean



CARDDATA
Sets or returns the Card Data buffer for the PortPowerSwipe control.

Syntax

PortPowerSwipe.CardData[ = value]

The CardData property syntax has these parts:

Part

Description

Value A string value specifying the card data.

Remarks

CardData will have the magnetic stripe information from the last card read or it can be set by
assigning a string to the buffer

Data Type

String

Advertising