Hi,
after processing a file I want to load automatically next file in sequence.
currendir is a string variable later holding path
allfiles is a string array to hold a list of files in that directory
so far I'm not able to define allfiles with all *txt files in currentdir - see my dumb code below
procedure TForm1.Button132Click(Sender: TObject);
var
currentdir: string;
allfiles: TStringArray;
i: Integer;
begin
currentdir := 'C:\Users\newar\Documents\gambas-projects\TRAINING-XV-USER\perm\Tisch7';
[b]allfiles=//insert list of files???[/b]
for i := Low(allfiles) to High(allfiles) do
begin
if allfiles[i] = ParamStr(0) then
begin
if i < High(allfiles) then
ListBox1.Items.LoadFromFile((allfiles[i + 1]));
Break;
end;
end;
end;
thanks for your suggestions ...
KLaus