-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUnitLTools.pas
More file actions
65 lines (47 loc) · 1.42 KB
/
UnitLTools.pas
File metadata and controls
65 lines (47 loc) · 1.42 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
unit UnitLTools;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
System.ImageList,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Media,
FMX.Controls.Presentation, FMX.Edit, FMX.Layouts, FMX.StdCtrls, FMX.ListBox,
FMX.Objects, FMX.ImgList, FMX.DateTimeCtrls;
type
TLTools = class(Tform)
private
{}
public
procedure FichierDansRepertoireCreate(aRepertoire : string);
procedure FichierDansRepertoireRead(aRepertoire : string);
end;
var
LTools: TLTools;
implementation
uses UnitMain;
procedure TLTools.FichierDansRepertoireCreate(aRepertoire : string);
var
Info: TSearchRec;
nombre : integer ;
begin
Form7.FQrCodeExistant := False ;
if FindFirst(aRepertoire + '\*.*', faAnyFile - faDirectory, Info)= 0 then begin
while FindNext(Info)= 0 do begin
if Info.Name = Form7.Edit1.Text + '.jpg' then Form7.FQrCodeExistant := True ;
end;
FindClose(Info);
end;
end;
procedure TLTools.FichierDansRepertoireRead(aRepertoire : string);
var
Info: TSearchRec;
nombre : integer ;
begin
Form7.FQrCodeExistant := False ;
if FindFirst(aRepertoire + '\*.*', faAnyFile - faDirectory, Info)= 0 then begin
while FindNext(Info)= 0 do begin
if Info.Name = Form7.Edit2.Text + '.jpg' then Form7.FQrCodeExistant := True ;
end;
FindClose(Info);
end;
end;
end.