Delphi Format中的换行符号是什么
Delphi Format中的换行符号是什么
var
s,s1,s2,s3:string;
begin
s:='Hello';
s1:=' World';
s2:=format('%s%s%s',[s,#13#10,s1]);
s3:=Format('%s'#13#10'%s',[s,s1]);
ShowMessage(s2);
ShowMessage(s3);
end;
var
s,s1,s2,s3:string;
begin
s:='Hello';
s1:=' World';
s2:=format('%s%s%s',[s,#13#10,s1]);
s3:=Format('%s'#13#10'%s',[s,s1]);
ShowMessage(s2);
ShowMessage(s3);
end;
#13#10两边都是有单引号的
#13#10在这里不能用
\n无效
ShowMessage( Format('%s,%s,%s',['hello',#13#10,'world']) );
[浙]-LCXLShadow(837277426) 15:48:47