Hello guys..
I need help to transfer TTable and TDataSource from form to Data Module. This is my code to generete item into TCombobox:=
procedure TForm1.FormCreate(Sender: TObject);
begin
while not TableCountry1.Eof do
begin
combobox1.Items.Add(TableCountry1.FieldByName('description').AsString);
tablecountry1.Next;
end;
end;
this can work properly when TTable and TDataSource placed on TForm1.
So can anybody modified this code in order TTable and TDataSource is place on Data Module.
Please help me.
TQ
I need help to transfer TTable and TDataSource from form to Data Module. This is my code to generete item into TCombobox:=
procedure TForm1.FormCreate(Sender: TObject);
begin
while not TableCountry1.Eof do
begin
combobox1.Items.Add(TableCountry1.FieldByName('description').AsString);
tablecountry1.Next;
end;
end;
this can work properly when TTable and TDataSource placed on TForm1.
So can anybody modified this code in order TTable and TDataSource is place on Data Module.
Please help me.
TQ