there is

procedure CreateObjects(const DirPath: string; StrPath, StrDir, StrFile : Tstrings); begin position:=StrPath.Strings[j].Length-StrFile.Strings[l].Length; end. 

Gives an error message

 [Error] Unit1.pas(274): Record, object or class type required на position:=StrPath.Strings[j].Length-StrFile.Strings[l].Length; 
  • one
    @ ivan31, To format a code, select it with the mouse and click on the button 101010 of the editor. - Artem

1 answer 1

Maybe so?

 position:=Length(StrPath.Strings[j])-Length(StrFile.Strings[l]); 
  • one
    accept the answer if it suits you - Nofate