字符串操作
var
s,s1,s2:String;
begin
s := ' microsoft is a big Company ';
s2:= Trimleft(s); //s2的内容为 'microsoft is a big Company '
s2:= TrimRight(s); //s2的内容为 ' microsoft is a big Company'
s2:= Trim(s); //s2的内容为 'microsoft is a big Company'
s2:= s+'wellcome you'; //s2的内容为 'microsoft is a big Company wellcome you'
s1:= StringReplace(s,'microsoft','MingRiSoft Company',[rfReplaceAll,rfIgnoreCase]);
//s2的内容为 ' MingRiSoft Company is a big Company '
end;
标签:big,Company,类型,内容,s2,字符串,microsoft From: https://www.cnblogs.com/DQ-MINE/p/17124905.html《Delphi应用开发完全手册》p33