Autor Beitrag
Windoof
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Windows 95/98 SE/NT4.0 WS/2000 Professional/XP Home & Professional, SuSE Linux 7.0/9.0 Professional, OpenBSD
Dev-C++ 4.9.9.0, Borland C++ Builder 3 Personal/5 Professional/6 Enterprise, Borland Delphi 6 Enterprise/7 Enterprise
BeitragVerfasst: Di 17.02.04 11:11 
Hallo. In C++ sieht diese Funktion etwa so aus:

ausblenden Quelltext
1:
2:
AnsiString asStr="Hallo, das ist ein Test.";
asStr=StringReplace(asStr,"t","Teh",TReplaceFlags()<<rfReplaceAll);


Wie sieht das in Delphi aus? Kritische Stelle ist das mit dem TReplaceFlags()...
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Di 17.02.04 11:22 
Hallo,

in Delphi würde das in etwa so aussehen:

ausblenden Delphi-Quelltext
1:
2:
asStr := 'Hallo, das ist ein Test.';
asStr := StringReplace(asStr,'t','Teh',[rfReplaceAll]);


(siehe auch die Onlinehilfe dazu)

_________________
If accidentally read, induce vomitting.
Windoof Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Windows 95/98 SE/NT4.0 WS/2000 Professional/XP Home & Professional, SuSE Linux 7.0/9.0 Professional, OpenBSD
Dev-C++ 4.9.9.0, Borland C++ Builder 3 Personal/5 Professional/6 Enterprise, Borland Delphi 6 Enterprise/7 Enterprise
BeitragVerfasst: Di 17.02.04 11:35 
Titel: thx
Gut, ich danke dir. Delphi und C++ sind zwar ziemlich ähnlich, aber in einigen Dingen unterscheiden sie sich gewaltig...