SlinkX.GetDeviceName

BSTR GetDeviceName(long DeviceNumber)

Parameters

DeviceNumber

A 1-based index to which device number you want the name of. Devices are enumerated in the order they are added. You can use the NumDevices property to determine how many devices are loaded,

Remarks

Returns the name of the specified 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.NumDevices