Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ShellListView selected in die ListBox (https://www.delphipraxis.net/33125-shelllistview-selected-die-listbox.html)

The Re@l 2. Nov 2004 06:50


ShellListView selected in die ListBox
 
Code:
procedure TForm3.Button3Click(Sender: TObject);
var
  files: string;
  i: integer;
begin


 for i:=0 to ShellListView1.SelCount-1 do
 begin
    files := ShellListView1.Folders[ShellListView1.GetNextItem(ShellListView1.Selected,
              sdAll,[isSelected]).Index+i-1].PathName;

  ListBox1.Items.Add(files);

  end;
    end;
Hi

Ich habe das Problem, das wenn ich 2 oder mehr Dateien Selektiere dann funzzt alles wunderbar, nehm ich aber nur eine Datei und will diese hinzufügen bekomme ich eine zugriffsverletzung. Hat da einer ne idee woran das liegt.

Gruß
The Re@l

The Re@l 2. Nov 2004 07:54

Re: ShellListView selected in die ListBox
 
Hi

Hat sich schon erledigt, habs anders gemacht und funktioniert :)

Gruß
The Re@l


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:30 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz