mima.pas

来自「使用DELPHI6.0开发的停车场管理信息系统 使用ADO和BDE技术连接SQL」· PAS 代码 · 共 74 行

PAS
74
字号
unit mima;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, DB, DBTables, Grids, DBGrids;

type
  Twoker_info = class(TForm)
    GroupBox1: TGroupBox;
    GroupBox2: TGroupBox;
    DataSource1: TDataSource;
    DBGrid1: TDBGrid;
    Table1: TTable;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    procedure Button3Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
 
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  woker_info: Twoker_info;

implementation

{$R *.dfm}

procedure Twoker_info.Button3Click(Sender: TObject);
begin
with Table1 do
 begin
 Table1.EditKey();
 end;
end;

procedure Twoker_info.Button1Click(Sender: TObject);
begin
with Table1 do
 begin
 Insert;
 end;
end;

procedure Twoker_info.Button4Click(Sender: TObject);
begin
with Table1 do
begin
FieldValues['创建时间']:=formatdatetime('yyyy-mm-dd hh:mm:ss',now);
Table1.Active:=True;
end;
end;

procedure Twoker_info.Button2Click(Sender: TObject);
begin
with Table1 do
begin
Table1.Delete;
end;
end;



end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?