Autor Beitrag
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mo 05.06.06 13:47 
Hallo,

ich möchte in eine TShellListView einen neuen Ordner hinzufügen. Ich habe es schon so versucht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm3.Button2Click(Sender: TObject);
begin
ShellListView1.AddItem('Neuer Ordner',TShellFolder);
end;

da kommt aber der Fehler:
ausblenden Fehler
1:
[Fehler] haupt.pas(47): E2010 Inkompatible Typen: 'TObject' und 'Class reference'					

Weiß jemand wie man das macht?
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mo 05.06.06 14:32 
ausblenden Delphi-Quelltext
1:
2:
ForceDirectories('C:\blubb\bla\');
Shelllistview1.refresh;
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mo 05.06.06 18:23 
danke hat super geklappt.