delphi中制表符#9,回车#13,换行#10等符号
delphi中#9,#13,#10等符号在 Delphi 字面量中表示字符代码为 9 的字符,即水平制表符(Tab)。
[*]等价写法:Chr(9)、Char(9)、#$09
[*]常用作分隔符或缩进
示例var s: string;
begin
s := 'Col1' + #9 + 'Col2'; // 插入 Tab
s := StringReplace(s, #9, ' ', ); // 将 Tab 替换为空格
end;相关
[*]换行:#13 = 回车 (CR), #10 = 换行 (LF), Windows 常用 #13#10 组合。
页:
[1]