Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File() Function with variable
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
File() Function with variable
Miscellaneous
Thread ID:
00512023
Message ID:
00512023
Views:
39
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?
Next
Reply
Map
View

Click here to load this message in the networking platform