本文整理自网络,侵删。
vars:string;q:Char;str:string;begin //System.SysUtils s:='abc'; q:='/'; //字符串左右添加字符 /abc/ str:=AnsiQuotedStr(s,q); Edit1.Text:=str; //字符串左右添加单引号 'abc' str:= QuotedStr(s); Edit2.Text:=str;
end;
本文链接:https://blog.csdn.net/ozhy111/article/details/81906506 相关阅读 >>
Delphi sysutils.comparetext的注释
Delphi 怎么将一个流转换成字符串?或者将字符串转出一个流
更多相关阅读请进入《Delphi》频道 >>