本文整理自网络,侵删。
//Delphi字符串反转函数
function strrev(lpData:string):string;
var
size,i,t:Integer;
begin
t:=0;
size:=Length(lpData);
SetLength(Result,size);
for i:=1 to size do
begin
Result[size-t]:=lpData[i];
Inc(t);
end;
end;
//字符串反转
edt2.Text:=strrev(edt1.Text);
相关阅读 >>
Delphi system.net.httpclient 下载
更多相关阅读请进入《Delphi》频道 >>