Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pathing problems

Status
Not open for further replies.

mikem1260

Programmer
Apr 19, 2006
15
US
VFP9 appears to have an issue with folder names containing spaces, e.g. c:\documents\Visual FoxPro Projects. I'm getting invalid path or file name errors whenever I try to access a file in folders like the one above using getfile().

Ideas, anyone?
TIA,

Mike

The light at the end of the tunnel is only a train 85% of the time.
 
VFP doesn't have any problem with spaces in path/file names. It does have trouble parsing commands when it sees them which is where Mike's suggestion comes in.

Consider this:

Use C:\My Favorites\my.dbf Exclusive

Is "Exclusive" the 3rd or 4th clause in that command? How should VFP guess?

Since you mentioned Getfile(), I'm guessing a &macro expansion is involved? I'm also guessing a name expression might serve you better:

lcFile=Getfile()
Use (lcFile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top