Autor Beitrag
delphist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN XP, 98, 95; SUSE LINUX 8.1, 6.1, 6.0

BeitragVerfasst: Di 02.09.03 09:34 
Hallo!
Irgenwie kennt Delphi 3 StringReplace nicht!
Mit der Hilfe kam ich auch nicht weiter!
Sucher Ersatzfunktion
mfg delphist

_________________
3w + freehostlist + de
3w + bild-stoerung + de
delphist Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN XP, 98, 95; SUSE LINUX 8.1, 6.1, 6.0

BeitragVerfasst: Di 02.09.03 10:15 
Bin Inzwischen Schlauer: Gibt es erst ab Delphi 6! Aber was ist mit dieser Funktion?:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
function Split(InStr, SplitAt: String): TStringArray; 
var 
  I, L: Integer; 
begin 
  SetLength(Result, 0); 
  if InStr = '' then 
    Exit; 
  I := Pos(SplitAt, InStr); 
  L := Length(SplitAt); 
  while I > 0 do 
  begin 
    SetLength(Result, Succ(Length(Result))); 
    Result[High(Result)] := Copy(InStr, 1, Pred(I)); 
    Delete(InStr, 1, Pred(I + L)); 
    I := Pos(SplitAt, InStr); 
  end; 
end;

Warum kennt Delphi 3 kein TStringArray? Wer kann mir helfen?

mfg delphist

_________________
3w + freehostlist + de
3w + bild-stoerung + de
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 02.09.03 10:19 
Delphi 3 kennt keine dynamsichen Arrays. Diegibt es erst ab Delphi 4. Und für StringReplace findest du in den FAQ einen Ersatz von Popov.

BTW StringReplace gabe es schon in Delphi 5 . Und ich meine Delphi 3 müßte es auch kennen. ist in SysUtils drin oder so.
delphist Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN XP, 98, 95; SUSE LINUX 8.1, 6.1, 6.0

BeitragVerfasst: Di 02.09.03 14:25 
SysUtils kennt Delphi 3 auch nicht!
Habs be Uses eingebunden!
mfg delphist!

_________________
3w + freehostlist + de
3w + bild-stoerung + de