Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error message baffling
Message
De
29/12/2006 14:28:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01180942
Message ID:
01180963
Vues:
13
>>>This code worked fine on all systems but now suddenly only works on mine and the users now get "File does not exist" Could this be a security issue given the file DOES in fact exist?
>>>
>>>name='MARTIN' (user dependant)
>>
>>The code is a bit strange. Should it be
>>
>>use p:\Info2
>>lcFileName = "c:\csu_zeta\" + name
>>copy structure to (m.lcFileName)
>>use (m.lcFileName) exclusive
>>zn = "p:\_" + name + ".txt" && e.g. file p:\_Martin.txt should exist
>>append from (zn) delimited
>>
>>e.g. the less you use & the more readable code will become?
>
>Naomi, I applied your code and it worked fine. On my machine only :-(
>append from (zn) delimited ** offending code "File does not exist"
>the file p:_martin.txt does get created (like it always did)

Are you absolutely sure that the file (zn) really exists? In case you did not know it, file(zn) is not reliable since file() does NOT respect the specified path. Adir(laDummy,zn)>0 is a much better solution.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform