Einzelnen Beitrag anzeigen

Skyruner2

Registriert seit: 26. Okt 2003
93 Beiträge
 
Delphi 7 Professional
 
#1

wie kann ich diesen code optimieren

  Alt 3. Jun 2004, 17:04
Delphi-Quellcode:
procedure TDBform.TableAccessChanging(Sender: TObject;
  var AllowChange: Boolean);
begin
dbnavigator.DataSource.DataSet.Active:=false;
end;

procedure TDBform.testEnter(Sender: TObject);
begin
adoquery_test.Active:=true;
dbnavigator.DataSource:=datasource_test;
end;

procedure TDBform.test2Enter(Sender: TObject);
begin
adoquery_test2.Active:=true;
dbnavigator.DataSource:=datasource_test2;
end;

procedure TDBform.newsEnter(Sender: TObject);
begin
adoquery_news.Active:=true;
dbnavigator.DataSource:=datasource_news;
end;

procedure TDBform.usersEnter(Sender: TObject);
begin
adoquery_useres.Active:=true;
dbnavigator.DataSource:=datasource_useres;
end;
titel sagt schon alles...
  Mit Zitat antworten Zitat