[fpc-pascal] Detecting IO errors with INI file
Michael Van Canneyt
michael at freepascal.org
Thu Apr 29 13:41:55 CEST 2021
On Thu, 29 Apr 2021, James Richters via fpc-pascal wrote:
>> Best add SysUtils and Classes.
>
> Thanks, that worked. But now I'm getting "cannot read or write variables of this type" for Writeln(Exception) is there an easy way to find out what the exception is?
On E : Exception do
Writeln(E.ClassName,' : ',E.Message);
Adapt E to whatever variable you used.
Michael.
More information about the fpc-pascal
mailing list