I am using the MakeDir() function to create a new directory, and most of the time the directory already exists so the function returns -9, which is all well and good, I can just ignore it. However, while testing my program in debug mode the MakeDir() function will register a non-fatal run-time error message which pops up with a box and I have to select "continue" each time. This is really annoying considering my program calls MakeDir every few seconds!
So is there:
1) A way to detect if an existing subdirectory already exists (and hence only call MakeDir if it doesn't exist)
or 2) Stop the damn MakeDir() function from generating a run-time error while debugging!
Thanks
Dave 🙂