1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
private
{ Déclarations privées }
public
{ Déclarations publiques }
constructor Create(AOwner: TComponent; const Identifiant:string); reintroduce;
end;
implementation
uses MPrincipale;
{$R *.dfm}
constructor TFInternet.Create(AOwner: Tcomponent; const Identifiant:string);
begin
inherited;
try
FPrincipale.ClientDataSetPanel.CommandText := 'SELECT * FROM mpg_BASE WHERE Household ID=' + Identifiant;
FPrincipale.ClientDataSetPanel.Active := true;
except
on E : Exception do
begin
FPrincipale.Log('SQL : ' + FPrincipale.ClientDataSetPanel.CommandText);
FPrincipale.Log(E.Message);
MessageDlg(E.Message, mtError, [mbOK], 0);
end;
end;
end; |