📄 utilssys.pas
字号:
unit UtilsSys;
interface
uses
Windows, SysUtils, Classes;
function LastPos (const Substr, S: string): Integer;
var
AppLocationDir: string; // the directory where the program was started from, with a '\' at the end
implementation
function LastPos;
var
I: Integer;
begin
for I := Length (S) - Length (Substr) + 1 downto 1 do begin
if Copy (S, I, Length (SubStr)) = Substr then begin
Result := I;
Exit;
end;
end;
Result := 0;
end;
initialization
AppLocationDir := ExtractFilePath (ParamStr (0));
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -