随笔 - 2146  文章 - 97 评论 - 11765 trackbacks - 253

举例:
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  万一  阅读(...)  评论(... 编辑 收藏