Getdefsetting method, Getfname method – MagTek MTMICRImage User Manual

Page 15

Advertising
background image

Methods

11

GETDEFSETTING METHOD
Returns the Value Stored under the associated key or returns the Default value passed in. Can be
used to retrieve a value located by a specific “Key”.

Syntax

MICRImage.GetDefSetting(ByVal Key As String, Optional Default As Variant) As String

The GetDefSetting method syntax has these parts:

Part

Description

Key

The Key being searched

Default

The Default value to return if the
key does not exist


Example

Return = MICRImage.GetDefSetting(“MICRCommPort”, “1”)

Return will contain the string “1” or the string that had been previously stored using the
MICRImage.SaveDefSetting command.

Data Type

String

GETFNAME METHOD
Returns the First Name from the track data.

Syntax

MICRImage.GetFName()

The GetFName method syntax has no parameters.

Remarks

Returns the First Name on an ABA type ‘A’ or’ ‘B’ formatted card or returns an empty string.

Example

txtFirstName.Text = MICRImage.GetFName()

Data Type

String

Advertising