Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell when printing to file is finished?
Message
De
07/11/2003 20:28:35
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00847854
Message ID:
00847875
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Rodd-

>
>lhFile = fopen(lcFileName,10)
>if lhFile = -1
>   Loop
>else
>   ... do the conversion
>endif
>
>
>However, for some reason this doesn't seem to be catching the fact the the file is still being created.

This is probably obvious, but just in case it isn't, to add to Sergey's reply, 10 opens the files for read-only access which will allow sharing. Either 11 (write-only) or 12 (read-write) will open the file exclusively, so if another process has it in use, the function will fail.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform