No, target does not already exist, nor open anywhere else. I'm trying to create to the local harddrive (c:\temp\) folder.
Is very confusing and, unfortunately, one of the few entries where Fox help is not much.
>Does the target file already exist? Is it open in another process? fcreate() will fail if it cannot create the new file at the OS level (meaning another process has it open). It could be marked read-only. It could be on a network resource where your rights to that directory have changed. Could be a great many things.
>
>
>
>>I need to create several text files and most of them are being created from existing 'master' files with some minor changes.
>>
>> mfh = Fopen('c:\temp\' + m.TestSection + m.TestCycle + '.cna')
>> mfo = Fcreate('c:\temp\' + m.TestSection + m.TestCycle + '.anc')
>>
>>
>>m.TestSection and m.TestCycle are defined as either 'R' or 'L' and '022013' respectively.
>>
>>The above two commands worked perfectly in the section above this one, and yes, I did issue an fclose() on each. The fopen works but the fcreate returns a -1 with no error.
>>
>>Can anyone see anything wrong with this?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place