>>>I am having trouble getting VFP to process folder names with spaces.
>>>
>>>For example, suppose I have a file data1.dbf in a folder "My Documents" and
>>>I have set a variable DIR1 = "C:\MY Documents".
>>>
>>>The commands USE C:\My Documents\data1 or USE &DIR1\data1 do not work.
>>>
>>>Is there a way to refer to a folder with a space in it so that it works?
>>
>>You can use Name expression
USE (DIR1 + "\data1")
>
>And also USE "C:\My Documents\data1"
I would never use it. It's a bad idea to hardcode directories in the application.
--sb--