-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUbkluas.pas
58 lines (48 loc) · 1.08 KB
/
Ubkluas.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
unit Ubkluas;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.Edit, FMX.Objects;
type
TForm23 = class(TForm)
Image1: TImage;
Image2: TImage;
Image3: TImage;
Edit1: TEdit;
Edit2: TEdit;
Image4: TImage;
Image5: TImage;
Image6: TImage;
Image7: TImage;
Edit3: TEdit;
Image8: TImage;
procedure Image8Click(Sender: TObject);
procedure Image7Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form23: TForm23;
implementation
{$R *.fmx}
{$R *.LgXhdpiPh.fmx ANDROID}
uses Uinbk;
procedure TForm23.Image7Click(Sender: TObject);
var ket,a,b : real;
begin
a := strToFloat(edit1.Text);
b := strToFloat(edit2.Text);
ket := (a*b)/2;
edit3.Text:=floatToStr(ket);
end;
procedure TForm23.Image8Click(Sender: TObject);
begin
Form20.Show;
edit1.Text:='';
edit2.Text:='';
edit3.Text:='';
end;
end.