Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spaces in File Paths
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00441097
Message ID:
00441112
Views:
14
Thanks Trey,

I was using macro substitution and that solved the problem for me.

Have a nice day,

Michael

>>Hello,
>>
>>lcTrans = getfile("Text:TXT", "Trans", "Trans", 0, "Find the Transaction File")
>>thisform.txtTrans.value = lcTrans
>>
>>I use this code in a form to find the location of a text file which I am appending to a table.
>>
>>My problem is that if the end user places the file in a folder which has a space in the path name, the program blows up with the error message "Command contains unrecognized phrase/keyword". Rather than trapping for the space in the paths (I have several files to locate), is there a way to get around the problem with the space in the path.
>>
>>Any assistance would be greatly appreciated.
>>
>>Michael
>
>Sounds like you are using macro expansion in the append from.
>Instead, use a named expression. - i.e.
>lcTrans = thisform.txtTrans.Value
>Select mytable
>
>** instead of
>Append From &lcTrans Type SDF
>
>** use
>Append From (lcTrans) Type SDF
Send me an email when the shouting stops
Previous
Reply
Map
View

Click here to load this message in the networking platform