home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-16 | 622 b | 33 lines | [TEXT/CWIE] |
- unit MyErrors;
-
- interface
-
- uses
- Types;
-
- const
- error_id = 925; { STR#, ERRS, ALRT, DITL. override ERRS with ERRS=128 }
-
- procedure DisplayError (msg: integer; err: OSErr);
-
- implementation
-
- uses
- TextUtils, MyErrorStrings, QAlerts, MyStrings;
-
- procedure DisplayError (msg: integer; err: OSErr);
- var
- s, e: str255;
- begin
- if (err <> noErr) & (err <> userCanceledErr) then begin
- if not ErrorString(128, err, e) then begin
- e := ErrorStr(error_id, err);
- end;
- GetIndString(s, error_id, msg);
- SPrintS3(s, s, e, '', '');
- QParamText('', s, '', '');
- QStopAlert(error_id, nil);
- end;
- end;
-
- end.