Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fcreate worked before, but not now?
Message
De
15/03/2013 17:10:40
 
 
À
15/03/2013 17:02:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01568525
Message ID:
01568529
Vues:
46
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')		&& Source file
>>  mfo = Fcreate('c:\temp\' + m.TestSection + m.TestCycle + '.anc')		&& Target file
>>
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform