Device.ID

Description

Returns the device identifer as an Integer. The device identifier is a sequential number that identifies the device in the collection of channels contained by the Device Manager (DeviceCollection).

C# Syntax

// get accessor
Int32 rtn = Device.ID;

Examples

VBScript Example

Application.Devices.enable = true
set oDevice = Application.Devices.Item("PC1600")
If TypeName (oDevice) = "Nothing" Then
set oDevice = Application.Devices.AddDevice( "PC1600" )
End If
logmessage "The device ID is: " & oDevice.ID