Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. unit Unit16;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8. Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
  9.  
  10. type
  11.  
  12. { TForm16 }
  13.  
  14. TForm16 = class(TForm)
  15. Button1: TButton;
  16. Button2: TButton;
  17. Edit1: TEdit;
  18. Edit2: TEdit;
  19. Edit3: TEdit;
  20. Label1: TLabel;
  21. Label2: TLabel;
  22. Label3: TLabel;
  23. Label4: TLabel;
  24. Memo1: TMemo;
  25. procedure Button1Click(Sender: TObject);
  26. procedure Button2Click(Sender: TObject);
  27. private
  28. { private declarations }
  29. public
  30. { public declarations }
  31. end;
  32.  
  33. var
  34. Form16: TForm16;
  35.  
  36. implementation
  37. uses Unit1, Unit17, Unit18;
  38. {$R *.lfm}
  39.  
  40. procedure TForm16.Button1Click(Sender: TObject);
  41. begin
  42. Form18.Show;
  43. Form16.hide;
  44. end;
  45.  
  46. procedure TForm16.Button2Click(Sender: TObject);
  47. begin
  48. If (edit1.text = '') or (edit2.text = '') or (edit3.text = '') then
  49. MessageDlg('Вы не ответили на вопрос!', mtWarning,[mbOK],0)
  50. else i:=i+1;
  51.  
  52. if i=1 then
  53. if ((edit1.text = 'протокол')Or (edit1.text = 'протокол доступа')) and
  54. (edit2.text = 'домен') and (edit3.text = 'имя страницы')
  55. then inc(Right)
  56. else inc(Wrong);
  57.  
  58. if i=1 then begin
  59. Button2.Caption:='Далее';
  60. edit1.Enabled:=False;
  61. edit2.Enabled:=False;
  62. edit3.Enabled:=False;
  63. inc(i);
  64. end;
  65.  
  66. if i=3 then begin
  67. Form17.Show;
  68. Form16.hide;
  69. i:= 0;
  70. end;
  71. end;
  72.  
  73. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement