现在的位置: 首页 > 综合 > 正文

StrCopy、StrCat、StrPas

2011年03月15日 ⁄ 综合 ⁄ 共 186字 ⁄ 字号 评论关闭
const
  P1: PChar = 'CodeGear';
  P2: PChar = 'Delphi';
var
  S: array[0..15] of Char;
begin
  StrCopy(S, P1);
  StrCat(S, ' ');
  StrCat(S, P2);
  ShowMessage(StrPas(S)); {CodeGear Delphi}
  ShowMessage(S);         {CodeGear Delphi}
end;

抱歉!评论已关闭.