unit SQL;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, ComCtrls, StdCtrls, Datenmodul;
type SQL_Befehle = class(TObject)
public
procedure SQL_Sel_Abfragen (Table : String; Field : String; Zu_Suchen: String); //Procedure der Klasse
end;
implementation
uses ZDataset,
DB, ZAbstractRODataset,Start;
procedure SQL_Befehle.SQL_Sel_Abfragen(Table : String; Field : String; Zu_Suchen: String);
var SQLText:String;
begin
SQLText:='Select * from '+Table+' where '+ Field +' like''' + Zu_Suchen + '%'' ;';
with DataModule1.ZQuery_Haupt do
begin
SQL.Clear;
SQL.Add(Sqltext);
Open;
end;
end;
end.