本文整理自网络,侵删。
SysUtils.LastDelimiter - 判断一个字符串在另一个字符串中最后出现的位置
该函数不区分大小写, 举例:var s: string; i: Integer;begin s := 'CodeDear Delphi'; i := LastDelimiter('Del',s); ShowMessage(IntToStr(i)); {12}end; 相关阅读 >>
Delphi 从给定字符串中截取n个字节的字符(解决汉字截取乱码问题)
Delphi 使用firedac tfdibbackup和tfdibrestore备份和还原firebird
更多相关阅读请进入《Delphi》频道 >>