Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN() with 12
Message
 
 
To
07/06/2002 16:33:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00666165
Message ID:
00666175
Views:
19
Michel,

You might need a short delay between the fclose() and the erase to let the OS fully commit the close. Of course in that time the file might get opened by something else again...

Can you just empty the content using fchsize()?

>I am using FOPEN() to see if I can get a handle to read write a specific file. The coding is like this:
>
>
>lnHandle=FOPEN(gcClientFat+'StyleSheet\'+PADL(gnMember,6,'0')+lcNextItem+'.css',12)
>IF lnHandle>0
>   FCLOSE(lnHandle)
>   ERASE (gcClientFat+'StyleSheet\'+PADL(gnMember,6,'0')+lcNextItem+'.css')
>ENDIF
>
>
>But, even with that in place, even if the handle is ok, I still, sometimes, can't erase the file. Anybody knows what I am doing wrong?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform