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