Einzelnen Beitrag anzeigen

I love Delphi

Registriert seit: 6. Nov 2007
68 Beiträge
 
#1

Problem mit Value List Editor

  Alt 8. Dez 2008, 17:51
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:
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;
Ich hoffe, ihr könnt helfen!!!

Danke schonmal,
Mann aus Delphi
  Mit Zitat antworten Zitat