Getdefsetting – MagTek MTPPSWIPE.OCX User Manual
Page 11

Methods
7
Example
Assume the Data from a Card Returned:
"%B1234567890123456^CARD/TEST^9912101?;1234567890123456=9912101?"
PortPowerSwipe.FindElement(2,”;”,0,”=”) will return ‘1234567890123456’
PortPowerSwipe.FindElement(2,”;”,0,”16”) will return ‘1234567890123456’
PortPowerSwipe.FindElement(1,”^”,0,”^^”) will return ‘CARD/TEST’
PortPowerSwipe.FindElement(1,”^”,0,”/”) will return ‘CARD’
Data Type
String
GETDEFSETTING
Returns data from the registry.
Syntax
PortPowerSwipe.GetDefSetting(ByVal Key As String, [ByVal Default As String]) As String
The GetDefSetting method syntax has these parts:
Part
Description
Key
The Registry Key.
Default
The Value returned if the key
does not exist.
This parameter is
optional.
Remarks
This method returns data stored in the HKEY_CURRENT_USER/Software/VB and VBA
Program Settings/PPSwipe/Startup section of the registry. If the Key value doesn’t exist within
the section, the Default value is returned.
Example
PortPowerSwipe.GetDefSetting(“CommPort”, “2”)
This returns the value of the CommPort Key. If the CommPort key doesn’t exist, ‘2’ is returned.
Data Type
String