小编Rob*_*ert的帖子

更改密码Delphi v7

Delphi v7

此代码旨在允许用户更改其密码.它似乎正确执行,但新密码未保存在密码数据字段中.我一定做错了什么,但我看不出来.

procedure TForm4.btnPswordClick(Sender: TObject);
var
  I: integer;
begin
tblLogin.First;;
for I := 0 to tblLogin.RecordCount  do
Begin
If tblLogin.FieldByName('Username').Value = Edit1.Text then
if tblLogin.FieldByName('Password').Value = Edit2.Text  then
sign2.Visible := True; //Test in this case tells the application to make Label1  
visible if the //username and password are correct
tblLogin.Next;
end;
I:= I+1;  //ends search loop of records so program can move on
If sign2.Visible = False then
begin
MessageDlg('Error Username, or Password not correct',
mtConfirmation, [mbCancel], 0);
end …
Run Code Online (Sandbox Code Playgroud)

delphi passwords delphi-7

1
推荐指数
1
解决办法
1224
查看次数

缩进子弹

我对编程很陌生,这还不够糟糕; 本周我做了更多的谷歌搜索,而不是谷歌的发现.

Delphi v7

我已经想出如何在我的richedit控件中创建项目符号.我无法找到的是当用户创建它们时如何缩进它们.

有任何想法吗?

delphi delphi-7

0
推荐指数
1
解决办法
1067
查看次数

标签 统计

delphi ×2

delphi-7 ×2

passwords ×1