📄 setpsw_pas.~pas
字号:
unit setpsw_pas;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons,datamd_pas;
type
Tsetpsw_form = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Edit1: TEdit;
Edit2: TEdit;
procedure BitBtn1Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
setpsw_form: Tsetpsw_form;
implementation
{$R *.dfm}
procedure Tsetpsw_form.BitBtn1Click(Sender: TObject);
begin
if (edit1.Text=edit2.Text) then
begin
datamodule1.adocommand1.CommandText:='update yg set user_password='''+edit1.Text+''''+
'where user_id='''+datamodule1.user_id+'''';
datamodule1.adocommand1.Execute;
application.MessageBox('密码修改成功','操作提示',mb_ok);
end
else
application.MessageBox('密码不相符','操作提示',mb_ok);
end;
procedure Tsetpsw_form.BitBtn2Click(Sender: TObject);
begin
close();
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -