So, ich habe jetzt mal alles raus geschmissen was ich nicht brauche.
Das Programm läuft durch.
An welcher Stelle muss ich nun den Befehl "ADODataSet1.Active:=true;"
absetzen?
Delphi-Quellcode:
program Databaseprj;
uses
Forms,
DBtest
in '
DBtest.pas'
{Form2};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm2, Form2);
Application.Run;
end.
unit DBtest;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ADODB, Grids, DBGrids,
DB;
type
TForm2 =
class(TForm)
ADOConnection1: TADOConnection;
ADODataSet1: TADODataSet;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
end.