procedure Tfmluru.SpeedButton2Click(Sender: TObject);
begin
qingkong;
end;
procedure Tfmluru.SpeedButton3Click(Sender: TObject);
begin
close;
end;
end.
查询界面代码:
unit Pchaxunbiaodan;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, ExtCtrls, DBCtrls, Grids, DBGrids, ComCtrls;
type
Tfmchaxun = class(TForm)
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
GroupBox3: TGroupBox;
StatusBar1: TStatusBar;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
Label1: TLabel;
Label2: TLabel;
ComboBox1: TComboBox;
Edit1: TEdit;
GroupBox4: TGroupBox;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
SpeedButton3: TSpeedButton;
SpeedButton4: TSpeedButton;
SpeedButton5: TSpeedButton;
ComboBox2: TComboBox;
Label3: TLabel;
procedure SpeedButton5Click(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject);
procedure ComboBox1Change(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
function fanhui():boolean;
procedure SpeedButton4Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
private
{ Private declarations }
public
chaxunziduan:string;
{ Public declarations }
end;
var
fmchaxun: Tfmchaxun;
implementation
uses Pmain, Pxueshengbaobiao;