Добавил:
rn Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
15
Добавлен:
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 Кб15Unit2.dcu
  • #
    26.05.20187 Кб15Unit2.dfm
  • #
    26.05.20185 Кб15Unit2.pas
  • #
    26.05.20187 Кб15Unit3.dcu
  • #
    26.05.2018949 б15Unit3.dfm
  • #
    26.05.2018962 б15Unit3.pas
  • #
    26.05.20189 Кб15Unit4.dcu
  • #
    26.05.20182 Кб15Unit4.dfm
  • #
    26.05.20183 Кб15Unit4.pas
  • #
    26.05.20187 Кб15Unit5.dcu
  • #
    26.05.2018936 б15Unit5.dfm