Getlname, Getdefsetting – MagTek MTKBDWEDGE.OCX User Manual
Page 10
MTKBDWedge.OCX Programming Reference Manual
6
GETLNAME
Returns the Last Name from the track data.
Syntax
KbdWedge.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
GETDEFSETTING
Returns data from the registry.
Syntax
KbdWedge.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/KbdWedge/Startup section of the registry. If the Key value doesn’t exist
within the section, the Default value is returned.
Example
KbdWedge.GetDefSetting(“CommPort”, “2”)
This returns the value of the CommPort Key. If the CommPort key doesn’t exist, ‘2’ is returned.
Data Type
String