ImageEn, unit iexWPD

TIEPortableDevices.LastError

TIEPortableDevices.LastError


Declaration

property LastError : String; (Read-only)


Description

Returns detail on the last failure that occured.

When calling a WPD method, such as NavigateToFolderID, a false result will indicate failure. Read LastError to access detail of the failure.
             

Example

if IEPortableDevices.RefreshDevices = False then
  ShowMessage('Unable to get devices: ' + IEPortableDevices.LastError);