?? f_product_item_id.pas
字號:
unit f_product_item_id;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, DB, ADODB;
type
Tw_product_item_id = class(TForm)
Panel1: TPanel;
Label2: TLabel;
BitBtn3: TBitBtn;
BitBtn4: TBitBtn;
ComboBox1: TComboBox;
ado_produce_item: TADOQuery;
ado_produce_itemproduct_item_id: TStringField;
ado_produce_itemproduct_item_name: TStringField;
procedure FormCreate(Sender: TObject);
procedure BitBtn3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
w_product_item_id: Tw_product_item_id;
implementation
{$R *.dfm}
procedure Tw_product_item_id.FormCreate(Sender: TObject);
begin
ado_produce_item.Close;
ado_produce_item.SQL.Clear;
ado_produce_item.SQL.Add('select * from product_item');
ado_produce_item.Open;
ado_produce_item.First;
while not ado_produce_item.eof do
begin
combobox1.items.add(trim(ado_produce_item.fieldbyname('product_item_id').asString)+' --- '+trim(ado_produce_item.fieldbyname('product_item_name').asString));
ado_produce_item.next;
end;
end;
procedure Tw_product_item_id.BitBtn3Click(Sender: TObject);
begin
close;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -