Autor Beitrag
Mann_aus_Delphi
Hält's aus hier
Beiträge: 15



BeitragVerfasst: Mo 08.12.08 16:08 
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:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
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