ustify"> IBQuery1.Open;
Edit1.Text:= raquo ;;
Edit2.Text:= raquo ;;
end;
procedure TForm8.Button3Click (Sender: TObject);
begin
IBQuery4.Params [0] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery4.Open;
IBQuery4.Close;
IBQuery1.Close;
IBQuery1.Open;
end;
procedure TForm8.Button2Click (Sender: TObject);
begin
IBQuery3.Params [0] .AsString:=Edit1.Text;
IBQuery3.Params [1] .AsString:=Edit2.Text;
IBQuery3.Params [2] .AsString:=form2.IBQuery1.Fields [0] .AsString;
IBQuery3.Params [3] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery3.Open;
IBQuery3.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit1.Text:= raquo ;;
Edit2.Text:= raquo ;;
end;
procedure TForm8.Button4Click (Sender: TObject);
begin
form9.edit3.Text:= raquo ;;
form9.IBQuery1.Close;
form9.IBQuery1.Params [0] .AsString:=IBQuery1.Fields [0] .AsString;
form9.edit1.Text:=IBQuery1.Fields [1] .AsString;
form9.edit2.Text:=IBQuery1.Fields [0] .AsString;
form9.IBQuery1.Open;
form9.ShowModal;
end;
procedure TForm8.DBLookupComboBox1Click (Sender: TObject);
begin
IBQuery1.Close;
IBQuery1.Params [0] .AsString:=form2.IBQuery1.Fields [0] .AsString;
IBQuery1.Open;
end;
end.
unit proiz;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, DBGrids, DB, IBCustomDataSet, IBQuery;
type
TForm3=class (TForm)
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Label1: TLabel;
Edit1: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
IBQuery1: TIBQuery;
IBQuery2: TIBQuery;
IBQuery3: TIBQuery;
IBQuery4: TIBQuery;
procedure Button1Click (Sender: TObject);
procedure Button2Click (Sender: TObject);
procedure Button3Click (Sender: TObject);
private
{Private declarations}
public
{Public declarations}
end;
var
Form3: TForm3;
implementation
uses menu;
{$ R * .dfm}
procedure TForm3.Button1Click (Sender: TObject);
begin
IBQuery2.Params [0] .AsString:=Edit1.Text;
IBQuery2.Open;
IBQuery2.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit1.Text:= raquo ;;
end;
procedure TForm3.Button2Click (Sender: TObject);
begin
IBQuery3.Params [0] .AsString:=Edit1.Text;
IBQuery3.Params [1] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery3.Open;
IBQuery3.Close;
IBQuery1.Close;
IBQuery1.Open;
Edit1.Text:= raquo ;;
end;
procedure TForm3.Button3Click (Sender: TObject);
begin
IBQuery4.Params [0] .AsString:=IBQuery1.Fields [0] .AsString;
IBQuery4.Open;
IBQuery4.Close;
IBQuery1.Close;
IBQuery1.Open;
end;