我原来的字符串分条处理。TEXT代表字符串。你自己改了就可以了。有点麻烦。随便。
Function FenTiao(text:widestring):TFmess;
var
num:string;
i:byte;
begin
if length(text)>70 then
begin
Fmess.num:=length(text) div 65;
if (length(text) mod 65)>0 then
begin
Fmess.num:=Fmess.num+1
end;
num:=inttostr(Fmess.num);
if not (Fmess.num=1) then
begin
Fmess.mess1:='(1/'+num+')';
Fmess.mess2:='(2/'+num+')';
Fmess.mess3:='(3/'+num+')';
Fmess.mess4:='(4/'+num+')';
Fmess.mess5:='(5/'+num+')';
Fmess.mess6:='(6/'+num+')';
Fmess.mess7:='(7/'+num+')';
Fmess.mess8:='(8/'+num+')';
end
else
begin
Fmess.mess1:='';
end;
for i:=1 to Fmess.num do
begin
if i=1 then
Fmess.mess1:=Fmess.mess1+copy(text,1,65)
else
if i=2 then
Fmess.mess2:=Fmess.mess2+copy(text,66,65)
else
if i=3 then
Fmess.mess3:=Fmess.mess3+copy(text,131,65)
else
if i=4 then
Fmess.mess4:=Fmess.mess4+copy(text,196,65)
else
if i=5 then
Fmess.mess5:=Fmess.mess5+copy(text,261,65)
else
if i=6 then
Fmess.mess6:=Fmess.mess6+copy(text,326,65)
else
if i=7 then
Fmess.mess7:=Fmess.mess7+copy(text,391,65)
else
if i=8 then
Fmess.mess8:=Fmess.mess8+copy(text,456,65);
end;
end
else
begin
Fmess.num:=1;
Fmess.mess1:=text;
end;
result:=Fmess;
end;