Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File() Function with variable
Message
From
28/05/2001 21:05:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512023
Message ID:
00512027
Views:
12
The syntax should work.

You tried:
? FILE("c:\lables\labelfile")
and it does work, but
lcFileName = "c:\lables\labelfile"
? FILE(lcFileName)
does not?

Is everything spelled right and don't you need an extension to labelfile? (i.e. you need the fullname including extension to have FILE() return .T.)



>>>>>>>>>>>>
>I have to use the file() function but I can't hard code the name and path as I don't know what it is until run time.
>
>When I try to store the path and file name to a variable and then put the variable in the file() function it always returns true.
>
>Something like this:
>
>lcFileName = "c:\lables\labelfile"
>
>?file(lcFileName)
>
>Gives me false, but I know that file exists in that directory.
>
>Any suggestions?
>>>>>>>>>>>>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform