fpc -B -glh testerror.pas
Free Pascal Compiler version 3.0.4-r37149 [2019/03/13] for arm
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling testerror.pas
Assembling testerror
Linking testerror
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
16 lines compiled, 0.1 sec
$ ./testerror
Segmentation fault
No, this method is not implemented in FPC 3.0.4No it is already in 3.0.4. (Otherwise it would not compile). It may be that there was a bug which should be fixed in FPC 3.2.0.
No it is already in 3.0.4. (Otherwise it would not compile). It may be that there was a bug which should be fixed in FPC 3.2.0.Ok. i just see source and is there 3.0.4. Thank for say Thaddy
Anyway your code compiles and works with 3.2.0 and trunk 3.3.1-41807. I tested on Raspbian Jessie.Many thank for try 3.2.0. I now usage more better solution and not use LastIndexOf :)