Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN() with 12
Message
 
 
À
07/06/2002 16:33:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00666165
Message ID:
00666175
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform