举例:
var
  ss,s: string;
begin
  ss := 'aa.bb e-ff';
  s := WrapText(ss, #13#10, ['.',' ',#9,'-'], 0);
  ShowMessage(s);  {aa.}
                   {bb }
                   {e- }
                   {ff }

  s := WrapText(ss, #13#10, ['.',' ',#9,'-'], 5);
  ShowMessage(s);  {aa.   }
                   {bb e- }
                   {ff    }

  s := WrapText(ss, #13#10, ['.',' ',#9,'-'], 10);
  ShowMessage(s);  {aa.bb e-ff}
end;

SysUtils 单元下的公用函数目录

posted on 2008-03-31 21:34  万一  阅读(3218)  评论(1编辑  收藏  举报