Autor Beitrag
Ace87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win XP Home, Linux Suse
Delphi 5, C++ Builder 5, Turbo C#
BeitragVerfasst: Mo 30.10.06 16:34 
@ jaenicke
bei deinem Delete
löscht er das alle ' Öffnen' im ganzen String??
weil ich will ja nur das am anfang weg haben
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19326
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 30.10.06 16:41 
Delete loescht nur das erste Vorkommen (anders als ReplaceString, das alle loescht). Delete sagst du: Loesche in dem String ab Zeichen Nummer x soundsoviele Zeichen aus dem String.
Mehr macht das nicht.
Wenn dein String also " Oeffne Word zum Oeffne n" ist, dann bleibt bei meinem Code danach "Word zum Oeffne n" uebrig.
Ace87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win XP Home, Linux Suse
Delphi 5, C++ Builder 5, Turbo C#
BeitragVerfasst: Mo 30.10.06 16:53 
StringReplace löscht nur alle, wenn man [rfReplaceAll] mitgibt
sonnst auch nur das erste