[fpc-pascal] Detecting IO errors with INI file
Sven Barth
pascaldragon at googlemail.com
Thu Apr 29 11:18:00 CEST 2021
James Richters <james.richters at productionautomation.net> schrieb am Do.,
29. Apr. 2021, 10:33:
> I get Error: Identifier not found “Try”
>
> Because my unit must be compiled with {$MODE TP}
>
You can try to use {$modeswitch exceptions}, I think.
Otherwise quite a few procedures and functions won’t even compile that only
> work in Turbo Pascal mode.
>
>
>
> I guess I can put it in another unit and make a call to that… then I can
> use Try
>
Considering that you're using Object Pascal functionality with TIniFile it
might be best to put that into a separate unit.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210429/857cc90d/attachment.htm>
More information about the fpc-pascal
mailing list