2 questions - sorry to keep you busy. I've got some pdf books
and a lot of short tutorials, but sometimes they do not contain
needed answers ...googling helps often but here i need some
advice...
1. Question
The playsound module is nice..
I use it with
playsound1.SoundFile:= filename ;
playsound1.Execute;
However, I want the user to have the option to stop sound
within the application. Coulod not find a command like
playsound1.stop or playsound1,deactivate ....
2. Question
The project folder "training" has a subfolder perm and perm
has a subfolder "first-table".
first.table contains about 300 txt files with some aweful names
like: "Westspiel_Spielbank20220118_Tisch_13_AR.txt" - where
the number 20220118 is year 2022, 01 for January and 18 for the day.
Could shorten it with copy(filename, 19,27), but this is not
my question.
In order to process 1 file after theother automatically, I need
to load all 300 file names maybe into a string array.
So first file will be processed and when the process has ended,
next file will be processed.
Now I could write every file by hand into an array[0..299] but
rather would like to do this by code.
Then by load file array[0] - file would be loaded into an
ListBox and processed....
But how can I acces the first-table directory and get all its
file names identified and put into the array...???
Thanks,
Klaus