unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DBCtrls,
DB, DBClient, StdCtrls, Mask, AppEvnts, ActnList;
type
TForm1 =
class(TForm)
DataSource1: TDataSource;
ClientDataSet1: TClientDataSet;
DBLookupComboBox1: TDBLookupComboBox;
DBEdit1: TDBEdit;
ActionList1: TActionList;
Action1: TAction;
Edit1: TEdit;
procedure Action1Execute(Sender: TObject);
procedure Edit1Change(Sender: TObject);
procedure DBEdit1Change(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Action1Execute(Sender: TObject);
begin
showmessage('
test');
end;
procedure TForm1.Edit1Change(Sender: TObject);
begin
if (Edit1. Text = '
1')
then
showmessage('
test');
if (Edit1. Text = '
2')
then
showmessage('
test')
end;
procedure TForm1.DBEdit1Change(Sender: TObject);
begin
//if (DBEdit1.Text = '1111') then
//showmessage('test');
if (DBEdit1.Text = '
1111')
then
Action1.execute
else
showmessage('
nichts');
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
end;
end.