【delphi开源代码栏目提醒】:网学会员,鉴于大家对delphi开源代码十分关注,论文会员在此为大家搜集整理了“bkcjxyunit.pas”一文,供大家参考学习!
unit bkcjxyunit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Mask;
type
Tbkcjxytemp = class(TForm)
ddd: TPanel;
Label3: TLabel;
Button1: TButton;
ComboBox1: TComboBox;
Label1: TLabel;
MaskEdit1: TMaskEdit;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
bkcjxytemp: Tbkcjxytemp;
implementation
uses datadomule, bkxyunit;
{$R *.dfm}
procedure Tbkcjxytemp.FormCreate(Sender: TObject);
begin
combobox1.Items.clear;
with datamodule1.qry_bkxy do
begin
close;
sql.clear;
sql.add('select * from kcb0') ;
open;
first;
if recordcount>0 then
combobox1.text:=Fields[1].asstring;
repeat
combobox1.items.add(fields[1].asstring);
until findnext=false;
end;
end;
procedure Tbkcjxytemp.Button1Click(Sender: TObject);
begin
bkxyfrm:=tbkxyfrm.create(self);
bkxyfrm.showmodal;
end;
end.