ImageEn, unit iexWPD

TIEPortableDevices.DeviceCount

TIEPortableDevices.DeviceCount

Declaration

property DeviceCount: Integer;

Description

Returns the number of devices in the device list.

Read-only

Example

// Refresh the list of devices
procedure TfrmMain.RefreshDeviceList();
var
  i: Integer;
begin
  lbxObjects.Items.Clear();
  if fPortableDevices.RefreshDevices = False then
    raise Exception.Create( 'Unable to get devices: ' + fPortableDevices.LastError);

  lbxDevices.Items.Clear();
  for i := 0 to fPortableDevices.DeviceCount - 1 do
    lbxDevices.Items.Add( fPortableDevices.Devices[ I ].ID );
end;