Hi Grog. Thanks for that. I thought maybe I was mistaken or lost the plot somewhere, so I went back and checked again in case I had been talking through my **** (which has been known to happen

).
I tried your Code. Same result.
I created a Project where the
only line of Code is:
PERFORM CHECKLIST FOR FILES
That's it. Ok, I put a WAIT KEY and an END after as well.
No matter what I put in the Screen Project Properties (fullscreen, windows, desktop, fulldesktop, hidden) - by the way, what does 'hidden' actually mean/do? - 640x480, 800x600, 1024x768, 16 bit, 32 bit etc etc, when I try to run it on an XP Virtual machine I have installed on a machine, I get the "Runtime Error 1512 - Display is not supported by available hardware at line 0".
It's not as if the Virtual Machine will not run programs, it does, but not compiled DBP programs. Mmmm. I even tried your Code on it with the same result. The point I am trying to make is that (it seems) that it never gets as far as the Code. It is failing on the executable before it runs any of the custom code. I hope that makes sense.
So this takes me back to my original question; is there any way to get around this behaviour of DBP? As I said, if the program fails before any custom code is processed, then it doesn't matter what the code is, or even if there is any code (yes, I tried running a program compiled without any code in it at all. Same result).
As it happens, this is not a serious show stopper, as not being able to run it on the Virtual Machine does not cause any real life problems. It is more a curiosity, but there it is. Maybe there is no way to get round this behaviour, but if there is, it would be good to know how, and I would like to get it to run on the VM.
On the other hand, the ultimate answer to life, the universe, and everything is 101010........