PaidtheUmpire
Programmer
This is what I'm trying to do:
When a user changes the InvoiceClient ComboBox the following code runs, which will hopefully Collect the Clients Address (A memo field) and put each line into the EditBoxes (Addy1, Addy2 etc.)
Any ideas on how?
Delphi, Delphi, Delphi. Oi! Oi! Oi!
When a user changes the InvoiceClient ComboBox the following code runs, which will hopefully Collect the Clients Address (A memo field) and put each line into the EditBoxes (Addy1, Addy2 etc.)
Any ideas on how?
Code:
procedure TForm1.InvoiceClientChange(Sender: TObject);
var TheAddy : TMemo;
begin
ClientName.Text := InvoiceClient.Text;
With ClientJunk do begin
Close;
ClientJunk.Parameters.ParamByName('[Name]').Value := InvoiceClient.Text;
Open;
try
First;
// TheAddy := Fields[2].AsMemo;
finally
Close;
end;
end;
end;
Delphi, Delphi, Delphi. Oi! Oi! Oi!