Findelement, About – MagTek MTKBDWEDGE.OCX User Manual
Page 11
Methods
7
FINDELEMENT
Returns particular information after parsing out specific card data based on parameters selected
by the user.
Syntax
KbdWedge.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.
Example
Assume the Data from a Card Returned:
"%B1234567890123456^CARD/TEST^9912101?;1234567890123456=9912101?"
KbdWedge.FindElement(2,”;”,0,”=”) will return ‘1234567890123456’
KbdWedge.FindElement(2,”;”,0,”16”) will return ‘1234567890123456’
KbdWedge.FindElement(1,”^”,0,”^^”) will return ‘CARD/TEST’
KbdWedge.FindElement(1,”^”,0,”/”) will return ‘CARD’
Data Type
String
ABOUT
Displays a message box containing information specific to the KbdWedge.
Syntax
KbdWedge.About()
The About method syntax has no parameters.