-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patherrmess.pas
39 lines (29 loc) · 945 Bytes
/
errmess.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{$I STDEFINE.INC} {Cat}
unit ErrMess;
interface
{AK155}
procedure MessFileNotOpen(const Path: String; RC: LongInt);
procedure MessFileNotRename(const s1, s2: String; ErrCode: LongInt);
procedure MessFileNotRead(const Path: String; RC: LongInt);
implementation
uses
DNApp, Messages, Commands, Advance1
;
procedure MessFileNotOpen(const Path: String; RC: LongInt);
begin
MessageBox(GetString(dlFBBNoOpen)+Path+^M^C'(RC=%d)',
@RC, mfError+mfOKButton);
end;
procedure MessFileNotRename(const s1, s2: String; ErrCode: LongInt);
begin
MessageBox(GetString(dlFCNoRename1)+GetString(dlDIFile)
+^M^C'(RC=%d)'+^M^C+Cut(s1, 60)
+GetString(dlFCNoRename2)+Cut(s2, 60),
@ErrCode, mfError+mfOKButton)
end;
procedure MessFileNotRead(const Path: String; RC: LongInt);
begin
MessageBox(GetString(dlFBBNotReadSource)+Path+^M^C'(RC=%d)',
@RC, mfError+mfOKButton);
end;
end.