Bart,
Thanks for your post - I'll have a go at using your code shortly.
Whilst waiting for your availability, I started to write a new procedure for my original code - actually a function. I've encountered my first hurdle. I've never actually written a function from the start - just modified someone elses.
From the body of my file search, when I find a file that ends in .txt, i want to jump to the function, so I say:
SearchTxt(Path, Rec);
I'm going to pass the path and file as parameters to my SearchTxt function.
I create a function like:
function TfrMain.SearchtTxt(const Path, Rec : String);
I declare that the parameters are strings.
I also declare it in the private section under Type as:
function SearchtTxt(const Path, Rec : String);
However, when I compile, I get an error:
Syntax error, ":" expected but ";" found.
I think it's something to do with the way I write the function.
Any thoughts.
By the way, thanks for persevering - I'm learning heaps; but I realize that it is taking up your time.
Regards