Registriert seit: 26. Aug 2003
Ort: Steinfurt
292 Beiträge
Delphi XE2 Professional
|
Re: fehler mit Pos() ?
26. Nov 2003, 02:15
Moinsen,
versuche das ganze mal so:
Delphi-Quellcode:
var SFVFile: TStringList;
i: Integer;
begin
SFVFile := TStringList.Create;
SFVFile.LoadFromFile(SFVFileName);
for i := SFVFile.Count - 1 downto 0 do
begin
SFVFile[i] := Trim(SFVFile[i]);
if (Length(SFVFile[i]) = 0) or (SFVFile[i][1] = ';') then
SFVFile.Delete(i);
end;
Result := SFVFile.CommaText;
SFVFile.Free;
end;
Gruß
Wormid
Debuggers don't remove Bugs, they only show them in Slow-Motion.
|