if not ForceDirectories ('garbage') then
begin
// handle the error
end;
results in an error message the says "Unable to create directory."
Try.. Except also does not seem to work.
What is wrong?
Tom
Are you sure? Or does the debugger capture the exception before it caneb
handled, hands it to you to look at it, and if you continue by presing F9
again, it will be handled after all?
BTW, is this SysUtils.ForceDirectories or FileCtrl.ForceDirectories? They
are not entirely the same, AFAIK.
--
Rudy Velthuis (TeamB)
"Being on the tightrope is living; everything else is waiting."
-- Karl Wallenda
I was using SysUtils version, and you are correct about the debugger.
Thanks for your help.
Tom