![]() |
Problem mit Value List Editor
Hallo Leute,
habe ich ziemlich merkwürdiges Problem: Ich fülle einen ValueListEditor mit einer Funktion, leere ihn jedoch vorher. Wenn ich diese Funktion dann jedoch nochmal aufrufe erhalte ich irgendwelche Zugriffsfehler! Hier der Code:
Delphi-Quellcode:
Ich hoffe, ihr könnt helfen!!!
begin
//Form5 Füllen Form5.EditName.Text:=LVCatalogs.Selected.Caption; Form5.EditDiscription.Text:=LVCatalogs.Selected.SubItems[0]; Form5.EditRow.Text:=IntToStr(LVCatalogs.ItemIndex); Form5.EditFile.Text:=LVCatalogs.Selected.SubItems[1]; //Vorgabe-Daten-Felder auffüllen Katalog.Text:=''; Katalog.LoadFromFile(Stammverzeichnis+'Kataloge\'+LVCatalogs.Selected.SubItems[1]); Form5.Edit1.Text:=Katalog.Strings[0]; Form5.EditSubName.Text:=Katalog.Strings[1]; Form5.Memo_Discription.Text:=StringReplace(Katalog.Strings[2],'\break',#13#10,[rfReplaceAll]); //Den Rest dynmisch auslesen, nachdem geleert i:=0; Form5.VLE.Strings.Clear; //while Form5.VLE.Strings.Count > 0 do // begin // Form5.VLE.Strings.Delete(0); // end; //i:=0; //while i < Katalog.Count-3 do // begin // Tmp.Text:=''; // ExtractStrings([';'],[], PChar(Katalog.Strings[i+3]), Tmp); // if Tmp.Strings[1] = '\empty' then Tmp.Strings[1]:=''; // Form5.VLE.Strings.Add(Tmp.Strings[0]+'='+Tmp.Strings[1]); // i:=i+1; // end; Form5.Show; Danke schonmal, Mann aus Delphi |
Re: Problem mit Value List Editor
Hallo
Bei welcher Zeile kommt denn der Fehler? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz