📄 unityh.~pas
字号:
unit Unityh;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, SUIForm, StdCtrls, SUIImagePanel,unitcomm, SUIEdit,
SUIButton,DB,ADODB;
type
TForm4 = class(TForm)
suiForm1: TsuiForm;
suiImagePanel1: TsuiImagePanel;
Label1: TLabel;
Label3: TLabel;
Label4: TLabel;
yh_name: TsuiEdit;
mm: TsuiEdit;
suiButton1: TsuiButton;
suiButton2: TsuiButton;
procedure suiButton2Click(Sender: TObject);
procedure suiButton1Click(Sender: TObject);
private
myQuery:TADOQuery;
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
{$R *.dfm}
uses
unitok1;
procedure TForm4.suiButton2Click(Sender: TObject);
begin
close;
end;
procedure TForm4.suiButton1Click(Sender: TObject);
var
frm8:TForm8;
begin
myQuery:=TADOQuery.Create(self);
myQuery.Connection:=ADOConn;
myQuery.SQL.Add('insert yh(yh_name,mm) values ('''+yh_name.Text+''','''+mm.Text+''')');
myQuery.ExecSQL;
myQuery.Close;
myQuery.Free;
frm8:=TForm8.Create(self);
self.Close;
frm8.ShowModal;
frm8.Free;
self.Close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -