delphi StrUtils.LeftStr、StrUtils.RightStr - 提取左右字符串


本文整理自网络,侵删。

 StrUtils.LeftStr、StrUtils.RightStr - 提取左右字符串
举例:
--------------------------------------------------------------------------------

var
ss,s: string;
begin
ss := 'CodeGear Delphi 2007';
s := RightStr(ss,4);
ShowMessage(s); {2007}

s := LeftStr(ss,4);
ShowMessage(s); {Code}
end;

相关阅读 >>

Delphi firedac 下的 sqlite 创建数据库

Delphi edit呈横线效果

Delphi工具之winsight

Delphi中引用sqlite3

Delphi 10.3 断点全部失效

Delphi从外部拖拽文件

Delphi 中字符串比较函数对比

Delphi 判断目录是否有写入权限

delhpi如何直接获得webbrowser输入的xml文件

Delphi winapi: getmodulefilename、getmodulehandle

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...