Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
14
Добавлен:
26.05.2018
Размер:
962 б
Скачать
unit Unit3;

interface

uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, HTMLHelpViewer;

type
TFAuth = class(TForm)
Edit1: TEdit;
Label1: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
FAuth: TFAuth;

implementation

{$R *.dfm}

uses Unit2;

procedure TFAuth.Button1Click(Sender: TObject);
begin
with FStart.ADOQTest do
begin
SQL.Clear;
SQL.Add('SELECT * FROM Code');
Active := TRUE;
if (Edit1.Text = FieldByName('Parol').AsString) then
begin
FStart.BNew.Visible := TRUE;
FStart.BDel.Visible := TRUE;
FStart.BRes.Visible := TRUE;
FAuth.Close;
end
else
ShowMessage('Неверный пароль!');
end;
end;

end.
Соседние файлы в папке Курсовая ( Мюнсберга и Когана )
  • #
    26.05.201814.48 Кб14Unit2.dcu
  • #
    26.05.20186.87 Кб14Unit2.dfm
  • #
    26.05.20185.14 Кб14Unit2.pas
  • #
    26.05.20186.57 Кб14Unit3.dcu
  • #
    26.05.2018949 б14Unit3.dfm
  • #
    26.05.2018962 б14Unit3.pas
  • #
    26.05.20188.58 Кб14Unit4.dcu
  • #
    26.05.20182.46 Кб14Unit4.dfm
  • #
    26.05.20183.16 Кб14Unit4.pas
  • #
    26.05.20186.7 Кб14Unit5.dcu
  • #
    26.05.2018936 б14Unit5.dfm