Autor Beitrag
leseratte18
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mi 12.03.08 14:48 
Hallo leute,

wie kann ich bei einer shelllistview-komponente die aktuell selektierte Datei ermitteln?

shelllistview1.selected.caption liefert mir einen leerstring zurück und löst außerdem EAccessViolation aus.

Danke schon mal im Vorraus

_________________
Nach dem "GEH!!!!!!!" kommt H.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 12.03.08 14:51 
Hallo!

Versuch mal statt Caption die Eigenschaft DisplayName zu nehmen.

Gruß
Tino
leseratte18 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mi 12.03.08 15:26 
selected.displayname gibt es nicht

_________________
Nach dem "GEH!!!!!!!" kommt H.
spaxxn
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 31

WinXP SP3, Win2000 SP4, Debian Sarge
D7 EE, D2006 PE, D2007 EE
BeitragVerfasst: Mo 17.03.08 09:23 
ShellListView1.SelectedFolder.DisplayName

ist irreführend, aber es scheint es zu sein.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 17.03.08 11:23 
DisplayName gibt Dir nur den Namen ohne Pfad und Extintion zurück nimm lieber SelectedFolder.PathName.

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)