Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a file
Message
 
 
À
03/12/2001 08:44:21
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00588662
Message ID:
00589058
Vues:
23
John,

CLOSE ALL will clear the file handles that you have still hanging around. You can also use DISP STAT to show you the handles open.

You might want to switch to using FILETOSTR() and ALINES() instead of using the LLFF.

>I open a file with this code.
>cFileName = GETFILE('MCP', 'Data files:', 'Open', 1, 'Select a Data File')
>nHandle = FOPEN(cFileName)
>
>and cFileName will hold C:\AMCP2\DOWNLOAD\APX0912.MCP but I will get a -1
>return to nHandle which indicates it failed. But how could this be. I pass it the path and all. I notice foxpro returns path commands with a backslash on
>the end of the string. Like CURDIR() and so forth. Is there something I should
>know about foxpro's ways in dealing with directory commands. Thanks for any help.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform