Hello Reece:
On Jan 4, 7:58=A0am, Reece <x...@[EMAIL PROTECTED]
> wrote:
> David - Thanks for the response.
>
> I have now tested further with the exe in one folder
> and the data in another (as before), What is
> happening is that most file fuctions look at the
> "remote" (non-exe) folder,
Yes, as described in the literature for "SET DEFAULT"... it does not
affect low level file functions. They look at the "DOS" directory,
and not Clipper's internal version of it.
http://www.itlnet.net/programming/program/Reference/c53g01c/ngecec7.html
> but fclose looks at the exe folder
This could probably be changed in WinDoze, if you or your customer
executes from a shortcut, by setting the "Working directory". Could
also use "dirchange()" in code.
http://www.itlnet.net/programming/program/Reference/c53g01c/ng3861e.html
=2E.. say whenever you call "SET DEFAULT", maybe wrap both into a single
function call.
> and writes the report to it. I guess I will have to
> specify the path as well as the file name. This appears
> to be an inconsistency in Clipper.
Some people call it a "feature". ;>)
> So, problem solved. Thanks for your help.
Sorry I was not more help. Sometimes it is best to specify the
directory when a file is accessed, but it sure seems "cludgey"...
David A. Smith


|