Other midstr option (complete program) using type helper for AnsiString:{$mode objfpc}{$H+}
uses sysutils;
begin
writeln('Impossible is for the unwilling'.substring(14,3)); // prints for
end.
Can you assign this to a Variable?
Variable:='Impossible is for the unwilling'.substring(14,3)