unit Checkdata;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, deklara, sterb, Grids, DirOutln, ShellAPI, ShlObj, registry,
struktur, CheckLst, ExtCtrls;
type
TForm2 =
class(TForm)
StartButton: TButton;
Inputedit: TEdit;
Outputedit: TEdit;
Formatbox: TComboBox;
Meldbox: TComboBox;
Outputbtn: TButton;
Inputbtn: TButton;
dlgmanagerpath: TOpenDialog;
Memo1: TMemo;
countmemo: TMemo;
reportbutton: TButton;
reportedit: TEdit;
Savereport: TSaveDialog;
Label1: TLabel;
Label2: TLabel;
Helpbtn: TButton;
Cancelbtn: TButton;
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
GroupBox3: TGroupBox;
CheckBox1: TCheckBox;
procedure OutputbtnClick(Sender: TObject);
procedure StartButtonClick(Sender: TObject);
procedure MeldboxChange(Sender: TObject);
procedure FormatboxChange(Sender: TObject);
procedure InputbtnClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure reportButtonClick(Sender: TObject);
procedure sep_rep();
procedure sep_plau();
procedure HelpbtnClick(Sender: TObject);
procedure CancelbtnClick(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
end;
function BrowseDialog(
const Title:
string;
const Flag: integer):
string;
var
Form2: TForm2;
implementation
{$R *.dfm}
[...]
procedure TForm2.StartButtonClick(Sender: TObject);
var
fehler:
string;
begin
meldung := memo1.lines;
dsnr :=countmemo.lines;
if checkstart(fehler)
then begin
meldung.add('
Durchlauf gestartet');
sterbthread := sterb.TMyThread.Create(False);
Cancelbtn.Enabled:=true;
StartButton.Enabled:=false;
end
else
ShowMessage(fehler);
end;
[..]
end