本文整理自网络,侵删。
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;
//字符串反转 www.delphitop.com
edt2.Text:=strrev(edt1.Text);
相关阅读 >>
Delphi firedac 下的 sqlite [8] - 自定义函数
Delphi tms web core twebsocketclient
Delphi system.masks.matchesmask 简单的正则用法
Delphi adoconnection连接 sqlserver
Delphi net.httpclient用最精简的代码获取网页数据
更多相关阅读请进入《Delphi》频道 >>