如何去掉一个字符串后的制表符,就像用trim()去掉前后空格一样,在线等
现在一个字符串前后有制表符(如#9,#D,#A等),怎么样去掉呀
[解决办法]
用 TrimRight 函数:
TrimRight Routine
Trims trailing spaces and control characters from a string.
Unit
SysUtils
Syntax
[Delphi] function TrimRight(const S: string): string; overload;
[Delphi] function TrimRight(const S: WideString): WideString; overload;
Description
TrimRight returns a copy of the string S with trailing spaces and control characters removed.
[解决办法]
strreplace 也行吧