Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 17.10.05 15:24 
Hallo,

möchte mittels TrimRight die Leerzeichen am Ende eines Strings löschen. Leider wird mir dabei der komplette string gellert...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var
  Ersteller :string;

begin

Liste := TStringList.Create;
  Liste.LoadFromFile('D:\001\test.txt');

  Ersteller := MidStr(Liste.Strings[0],127,15);
  Ersteller := TrimRight(Ersteller);

end;



hilfe....danke
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 17.10.05 15:40 
Ich hoffe, der String ist länger als 127 Zeichen. Hast du das mal geprüft?
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 17.10.05 15:55 
hallo,

ja, nach bei der ersten Zuweisung hat die variable Ersteller den Wert 'Bruckmeier ',
nach der zweiten den Wert ''...