SlinkX.GetNumCodes

long GetNumCodes(LPCTSTR DeviceName)

Parameters

DeviceName

A string containing the name of the device you want to count the codes of.

Remarks

Returns the number of codes in the 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.GetCodeName