📄 gsunit.pas
字号:
unit GSUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, DB, DBTables, Mask, DBCtrls, StdCtrls;
type
TForm6 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
DBEdit1: TDBEdit;
DBEdit2: TDBEdit;
DataSource1: TDataSource;
Table1: TTable;
Table1BDEDesigner: TStringField;
Table1BDEDesigner2: TStringField;
Table1BDEDesigner3: TStringField;
Table1BDEDesigner4: TFloatField;
Table1BDEDesigner5: TStringField;
Table1BDEDesigner6: TStringField;
Table1BDEDesigner7: TStringField;
SpeedButton1: TSpeedButton;
procedure SpeedButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form6: TForm6;
implementation
uses Unit7;
{$R *.dfm}
procedure TForm6.SpeedButton1Click(Sender: TObject);
begin
With Table1 do
begin
Indexname:='KH';
Open;
SetKey;
FieldByname('卡号').Asstring:=Edit1.text;
GotoNearest;
Indexname:='PASS';
Open;
SetKey;
FieldByname('密码').Asstring:=Edit1.text;
GotoNearest;
if ((DBEdit1.Text<>Edit1.text)or(DBEdit2.Text<>Edit2.text)) then
Showmessage('对不起,没有该用户!')
else
Form7.show;
End;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -