Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell when printing to file is finished?
Message
From
07/11/2003 20:28:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00847854
Message ID:
00847875
Views:
20
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform