-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEditClient.pas
executable file
·60 lines (51 loc) · 1.25 KB
/
EditClient.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
59
60
unit EditClient;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, LinkedList,
Vcl.ExtCtrls;
type
TEditForm = class(TForm)
Label1: TLabel;
Button1: TButton;
Button2: TButton;
SurnameEdit: TLabeledEdit;
NameEdit: TLabeledEdit;
AddressEdit: TLabeledEdit;
NumberEdit: TLabeledEdit;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
EditForm: TEditForm;
temp: PElement;
implementation
{$R *.dfm}
procedure TEditForm.Button1Click(Sender: TObject);
begin
//temp.Name := Edit1.Text;
//temp.Date := FormatDateTime('ddddd', DateTimePicker1.Date);
//temp.City := ComboBox1.Text;
//temp.Price := StrToFloat(Edit2.Text);
//temp.Sold := StrToInt(Edit3.Text);
//temp.Cost := StrToFloat(Edit4.Text);
with Temp^ do
begin
Surname := SurnameEdit.Text;
Name := NameEdit.Text;
Address := AddressEdit.Text;
Number := StrToInt(NumberEdit.Text);
end;
Close;
temp := nil;
end;
procedure TEditForm.Button2Click(Sender: TObject);
begin
Close;
end;
end.