Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
So when will your new stack on System Errors be finished? ;-) JUST KIDDING! On Oct 5, 2012, at 2:56 PM, J. Landman Gay wrote: > On 10/5/12 3:58 PM, Bob Sneidar wrote: >> I tried sysError() instead. It gives me 13 (for folder creation). It >> might be different for files. Now have fun parsing what

Re: Creating files/folders

2012-10-05 Thread J. Landman Gay
On 10/5/12 3:58 PM, Bob Sneidar wrote: I tried sysError() instead. It gives me 13 (for folder creation). It might be different for files. Now have fun parsing what that means! Jacque actually had something along these lines. A function that returned the textual equivalent of a system error? Act

Re: Creating files/folders

2012-10-05 Thread Peter Haworth
Thanks, that's a step in the right direction. The syserror values will be different on each platform so yes, it will be a pain trying to figure out what they mean but more info is better than none at all! Pete lcSQL Software On Fri, Oct 5, 2012 at 1:58 PM, Bob Sneidar wr

Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
I tried sysError() instead. It gives me 13 (for folder creation). It might be different for files. Now have fun parsing what that means! Jacque actually had something along these lines. A function that returned the textual equivalent of a system error? Bob On Oct 5, 2012, at 1:25 PM, Peter H

Re: Creating files/folders

2012-10-05 Thread Bob Sneidar
I would have thought a try catch construct should trap the error. However, upon testing this myself, I find it does not, and the result contains, "can't create that directory". This leads me to believe that a failure to create a directory is not considered by LC to be an error per se. From LC's

Re: Creating files/folders

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 1:25 PM, Peter Haworth wrote: > Sorry I should have been more specific. The result just says something > like "Can't create file" or some such generic message - I'm looking for > something more specific as to why it couldn't be created. In that case, you're way beyond my p

Re: Creating files/folders

2012-10-05 Thread Peter Haworth
Sorry I should have been more specific. The result just says something like "Can't create file" or some such generic message - I'm looking for something more specific as to why it couldn't be created. Pete lcSQL Software On Fri, Oct 5, 2012 at 1:02 PM, Dr. Hawkins wrote:

Re: Creating files/folders

2012-10-05 Thread Dr. Hawkins
On Fri, Oct 5, 2012 at 12:56 PM, Peter Haworth wrote: > If I "open file " for write" and the file doesn't exist LC > creates it. But what happens if an error occurs? For example, the file > path includes a folder that doesn't exist, or permissions don't allow the > file to be created. I know the