dik
2021-05-24 16:40:46 UTC
hi -
in turbo pascal one traps errors like this:
{$I-}
reset(f);
errnum := ioresult;
if (errnum <> 0) then HALT(errnum);
{$I+}
in irie pascal (http://irietools.com/) one does
this:
traperrors (false);
reset(f);
errnum := getlasterror;
if (errnum <> 0) then HALT(errnum);
traperrors (true) ;
i am attempting to port irie to turbo. i cannot see
how to write a 'traperrors' procedure in turbo
pascal.
i would appreciate any help. thanks.
in turbo pascal one traps errors like this:
{$I-}
reset(f);
errnum := ioresult;
if (errnum <> 0) then HALT(errnum);
{$I+}
in irie pascal (http://irietools.com/) one does
this:
traperrors (false);
reset(f);
errnum := getlasterror;
if (errnum <> 0) then HALT(errnum);
traperrors (true) ;
i am attempting to port irie to turbo. i cannot see
how to write a 'traperrors' procedure in turbo
pascal.
i would appreciate any help. thanks.