Advertisement
lesharb

Использование InputBox и InputQuery

May 11th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.37 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   s, s1: string;
  4.   b: boolean;
  5. begin
  6.   s := Trim(InputBox('Новый пароль', 'Пароль', 'masterkey'));
  7.   b := s <> '';
  8.   s1 := s;
  9.   if b then
  10.     b := InputQuery('Повторите пароль', 'Пароль', s1);
  11.   if not b or (s1 <> s) then
  12.     ShowMessage('Пароль неверен');
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement