Topic: passcode
How can when I press the delete key it asks for the passcode to confirm the deletion?
My Visual Database → General → passcode
How can when I press the delete key it asks for the passcode to confirm the deletion?
How can when I press the delete key it asks for the passcode to confirm the deletion?
procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
var
pass : string = '1234jkjh';
inputPass : string;
begin
InputQuery('Подтверждение удаления ','Для удаления записи введите пароль',inputPass);
if (inputPass <> pass) then Cancel := True;
end;
ms2014m wrote:How can when I press the delete key it asks for the passcode to confirm the deletion?
procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean); var pass : string = '1234jkjh'; inputPass : string; begin InputQuery('Подтверждение удаления ','Для удаления записи введите пароль',inputPass); if (inputPass <> pass) then Cancel := True; end;
Thank you very much
It works well, but when deleting the first time, it asks for the password, and when deleting the second time, I find the password registered automatically, and this is not good.
Is it possible to create a page where I can change the password and save it?
you can try setting InputPass as empty string.
as to saving the password, there's a couple of way to do it in my perspective.
you can save it in database. or in an ini file. but make sure to encrypt it.
My Visual Database → General → passcode
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi