📄 insertclient.pas.~19~
字号:
unit insertclient;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,mainProfile;
type
TForm4 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
Edit2: TEdit;
Label3: TLabel;
ComboBox1: TComboBox;
Label4: TLabel;
Edit3: TEdit;
Button1: TButton;
Button2: TButton;
Button3: TButton;
procedure Button3Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
//var //callcode, names,groups,grades:string;
{$R *.dfm}
procedure TForm4.Button2Click(Sender: TObject);
begin
Close();
end;
procedure TForm4.Button1Click(Sender: TObject);
var //colofgrid2:integer;
s:string;
begin {ok button }
Form1.StringGrid2.Cells[0,rowofgrid2]:= Trim(Edit1.Text) ;
Form1.StringGrid2.Cells[1,rowofgrid2]:= Trim(Edit2.Text) ;
s:=Trim(ComboBox1.Text);
Form1.StringGrid2.Cells[2,rowofgrid2]:= Trim(s);
Form1.StringGrid2.Cells[3,rowofgrid2]:= Trim(Edit3.Text) ;
Form1.StringGrid2.Cells[3,rowofgrid2]:= '1' ;
rowofgrid2:=rowofgrid2+1;
end;
procedure TForm4.Button3Click(Sender: TObject);
begin
Edit1.Text:='';
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -