📄 zyglunit.pas
字号:
unit zyglunit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, ExtCtrls, StdCtrls, ToolWin, ComCtrls, DB,
DBTables;
type
Tzygl = class(TForm)
ToolBar1: TToolBar;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Panel1: TPanel;
DBGrid1: TDBGrid;
qry: TQuery;
DataSource1: TDataSource;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
zygl: Tzygl;
implementation
{$R *.dfm}
procedure Tzygl.Button1Click(Sender: TObject);
begin
qry.edit;
qry.Append;
end;
procedure Tzygl.Button2Click(Sender: TObject);
begin
if application.MessageBox('确实要删除这条记录吗?','提示',mb_okcancel+mb_iconinformation)=id_ok then
with qry do
if isempty=false then
delete;
end;
procedure Tzygl.Button3Click(Sender: TObject);
begin
qry.edit;
qry.Post;
qry.close;
qry.Open;
end;
procedure Tzygl.Button4Click(Sender: TObject);
begin
close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -