📄 mima.pas
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -