ImageEn, unit iexWPD

TIEPortableDevices.NavigateToParent

TIEPortableDevices.NavigateToParent


Declaration

function NavigateToParent : Boolean;


Description

Opens the parent of the active folder.

The objects list will be filled if this method succeeds

Result is false if an error was detected. You can check LastError for detail on the failure.

Note: Use CanNavigateToParent to check whether the current folder has a parent


Example

// Go to the parent of the displayed folder
procedure TfrmMain.btnOpenParentClick(Sender: TObject);
var
  I: Integer;
begin
  if fPortableDevices.NavigateToParent() then
  begin
    lbxObjects.Items.Clear;
    for I := 0 to fPortableDevices.ObjectCount - 1 do
      lbxObjects.Items.Add( fPortableDevices.Objects[ I ].ID );
  end;
end;