Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure TForm1.Button1Click(Sender: TObject);
- var
- s, s1: string;
- b: boolean;
- begin
- s := Trim(InputBox('Новый пароль', 'Пароль', 'masterkey'));
- b := s <> '';
- s1 := s;
- if b then
- b := InputQuery('Повторите пароль', 'Пароль', s1);
- if not b or (s1 <> s) then
- ShowMessage('Пароль неверен');
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement