Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error message baffling
Message
From
29/12/2006 14:28:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01180942
Message ID:
01180963
Views:
12
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform