L
litong
Unregistered / Unconfirmed
GUEST, unregistred user!
我这个算法速度太慢了<br>//格式化数据【以 , 区分】<br>function getmaskstring(s:string;position:integer):string;<br>var<br> str:string;<br> i,len:integer;<br> begin<br> Str:='';<br> for i:=0 to position -1 do<br> begin<br> if(pos(',',s)<=0) then<br> begin<br> str:=s;<br> break;<br> end;<br> str:=copy(s,1,pos(',',s)-1);<br> len:=length(str);<br> s:=copy(s,len+2,length(s)-len-1);<br> <br> end;<br> Result:=str;<br> end;