unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
vokabelfiles: TComboBox;
Button1: TButton;
start: TButton;
debug: TLabel;
ComboBox1: TComboBox;
Label1: TLabel;
Label2: TLabel;
procedure FormCreate(Sender: TObject);
procedure startClick(Sender: TObject);
procedure vokabelfilesChange(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
dateipfad,choosedlec:string;
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var searchResult : TSearchRec;
begin
dateipfad:=ExtractFilePath(ParamStr(0))+'Vokabeldateien\';
if FindFirst(dateipfad+'*.txt', faAnyFile, searchResult) = 0 then
begin
try
repeat
vokabelfiles.Items.Add(searchResult.Name);
until FindNext(searchResult) <> 0;
finally
FindClose(searchResult);
end;
end;
end;
procedure TForm1.vokabelfilesChange(Sender: TObject);
begin
choosedlec:=vokabelfiles.Text;
end;
procedure TForm1.startClick(Sender: TObject);
begin
Form2.Show;
end;
end.