Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing All Files Opened with FOpen
Message
 
 
À
21/11/2001 11:34:27
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00584535
Message ID:
00584573
Vues:
32
In development if I want to close all open low-level files I use following code
For i=1 TO 100
 = Fclose(i)
Endfor
I never had a need to use in runtime.

>Following is a snip of code from an app the guy before me wrote. Dots just mean that there was irrelevant code between the lines. He issues a Close All in order to make sure the ASCII files are closed before continuing the process. This causes problems for me - both in reality and my sense of order. How do I handle closing any files that were opened with FOpen/FCreate do this is not an issue? Thanks!
>
>Regards, Renoir
>
>
>* - not closing all left some ascii files open, causing conflicts
>
>Close ALL
>.
>.
>.
>m.filein2='C:\SFW\DATA\'+m.filein
>.
>.
>.
>m.fileout=SUBSTR(m.filein,1,AT('.',m.filein))+'ERR'
>m.handlein = FOPEN(m.filein2,0)
>m.handleout= FCREATE(m.fileout,0)
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform