SlinkX.GetCodeName

BSTR GetCodeName(LPCTSTR DeviceName, long CodeNumber)

Parameters

DeviceName

A string containing then device name you want a code from.

CodeNumber

A 1-based index to which code number you want the name of.  You can use the GetNumCodes property to determine how many codes are in a device.

Remarks

This method retrieves a code name from a loaded device.

Example (Visual Basic)

Dim nDevices As Long
Dim nCodes As Long
Dim DeviceName As String
Dim CodeName As String

nDevices = Slinkx.NumDevices
If (nDevices > 0) Then
    DeviceName = Slinkx.GetDeviceName(1)
    nCodes = Slinkx.GetNumCodes(DeviceName)
    If (nCodes > 6) Then
        CodeName = Slinkx.GetCodeName(DeviceName, 6)
        MsgBox ("Code number 6 in Device " + DeviceName + " is " + CodeName)
    End If
End If

See Also

SlinkX.GetNumCodes