Delphi-PRAXiS
Seite 2 von 2     12   

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 FileListBox und ListBox Problem (https://www.delphipraxis.net/111105-filelistbox-und-listbox-problem.html)

maxmax 29. Mär 2008 17:27

Re: FileListBox und ListBox Problem
 
jetzt hab ich noch eine frage:
wenn ich jetzt eine datei so abspeichere, dann wird sie nicht sofort in der FileListBox angezeigt, obwohl sie im gleichen verzeichnis ist.
Wie kann ich das ändern??

und wenn ich einträge in der ListBox ändern will (ich hab edits mit dem vorhrigen inhalt) will ich es so überschreiben:
ABER es geht NICHT!!!
Delphi-Quellcode:
procedure TForm1.AendernClick(Sender: TObject);
begin
try
if ListBox1.ItemIndex<>-1 then
begin
ListBox1.Items.Insert(ListBox1.ItemIndex, Name.Text+' | '+Ansprechpartner.Text+' | '+Strasse.Text+' | '+Ort.Text+' | '+Telefon.Text+' | '+Telefax.Text+' | '+Mobil.Text+' | '+EMail.Text);
ListBox1.Items.Delete(ListBox1.ItemIndex);
end
else
ShowMessage ('Es müssen Einträge markiert sein!');
except
ShowMessage ('Falsche Eingaben!');
end;
end;
BITTE HELFT MIR! :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:03 Uhr.
Seite 2 von 2     12   

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