Registriert seit: 7. Jan 2003
Ort: Menden
192 Beiträge
Delphi 7 Enterprise
|
Re: Copy Pos Delete - Bin auf dem Holzweg...
17. Jul 2004, 11:32
Delphi-Quellcode:
function split(s:string; splitchar : char) : TStrings;
var a : integer;
tmp : string;
begin
if NOT assigned(result) then exit;
result := TStringlist.create;
tmp := s;
a := pos(splitchar,tmp);
while a > 0 do begin
delete(tmp,a,1);
insert(#13#10,tmp,a);
a := pos(splitchar,tmp);
end;
result.Text := tmp;
end;
Schön kurz
Christian Killing for peace is like fucking for virginity
Nightshade
|
|
Zitat
|