Getlname, Findelement – MagTek MTPPSWIPE.OCX User Manual
Page 10

MTPPSwipe.OCX Programming Reference Manual
6
GETLNAME
Returns the Last Name from the track data.
Syntax
PortPowerSwipe.GetLName()
The GetLName method syntax has no parameters.
Remarks
Returns the Last Name on an ABA type ‘A’ or’ ‘B’ formatted card or returns an empty string.
Data Type
String
FINDELEMENT
Returns particular information after parsing out specific card data based on parameters selected
by the user.
Syntax
PortPowerSwipe.FindElement(ByVal
TrackNum As Integer, ByVal
RefChar As String, ByVal
Displacement As Integer, ByVal NumDigits As String, [DirectionBack As Variant]) As String
The FindElement method syntax has these parts:
Part
Description
TrackNum
See Values From GetTrack method.
RefChar
The Character to Reference - Can also include multiples (e.g.,
^^ would indicate Reference Character is the second ^).
Displacement
Number of Digits to Displace.
NumDigits
The Length or Terminating Character - Can also include
multiples (e.g. “= = =” would indicate that the Terminating
Character is the third “=”.
DirectionBack
The Direction to Travel. This parameter is optional. If set to
True, the OCX looks Right to Left; if set to False, the OCX
looks Left to Right. If not specified, the OCX looks Left to
Right unless the RefChar specified is an End Sentinel on
Magnetic Track Data ("?"), in which case the OCX looks Right
to Left.