unit Eingabe;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Mask, DBCtrls,
DB, DBTables, ExtCtrls, XPMan, ComCtrls;
type
TForm1 =
class(TForm)
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Label13: TLabel;
Label14: TLabel;
Label16: TLabel;
Label17: TLabel;
Label18: TLabel;
Label19: TLabel;
Label20: TLabel;
Label21: TLabel;
Label22: TLabel;
Label23: TLabel;
Label24: TLabel;
Label25: TLabel;
Label1: TLabel;
Label26: TLabel;
Label27: TLabel;
Button1: TButton;
Button2: TButton;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
DBEdit3: TDBEdit;
DBEdit4: TDBEdit;
DBEdit5: TDBEdit;
DBEdit6: TDBEdit;
DBEdit7: TDBEdit;
DBEdit8: TDBEdit;
DBEdit9: TDBEdit;
DBEdit10: TDBEdit;
DBEdit12: TDBEdit;
DBEdit13: TDBEdit;
DBEdit14: TDBEdit;
DBEdit15: TDBEdit;
DBEdit16: TDBEdit;
DBEdit17: TDBEdit;
Table1: TTable;
DataSource1: TDataSource;
Button3: TButton;
Button4: TButton;
XPManifest1: TXPManifest;
DBMemo1: TDBMemo;
Button5: TButton;
DBText1: TDBText;
Button6: TButton;
procedure Button2Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
uses Anzeige;
{$R *.dfm}
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
table1.Insert;table1.post;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
table1.delete;
end;
procedure TForm1.Button4Click(Sender: TObject);
begin
Form2.Show;
end;
procedure TForm1.Button5Click(Sender: TObject);
var
zahl1, zahl2, ergebnis: integer;
begin
zahl1 :=StrToInt(dbedit10.text);
zahl2 :=StrToInt(dbedit9.text);
Ergebnis:=zahl2 - zahl1;
DBtext1.Caption:=inttostr(ergebnis);
end;
procedure TForm1.Button6Click(Sender: TObject);
begin
table1.edit;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
end;
end.