Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending from files where the file or path contains spa
Message
 
To
28/11/2006 12:36:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01172990
Message ID:
01172996
Views:
14
>I am having problems when a user tries to import a text file from certain locations. If the path or the file name contains a space an error 36 "Command Contains Unrecognized phrase/keyword" occurs. How can I avoid this message?
>
>
>gcTable = GETFILE('', 'Import File', 'Import', 0,'Import Account Reconcilement Data')
>
>IF FILE(gcTable)
>   append from &gcTable delimited
>ENDIF
>
A slight adfjustment to Sergey's suggestion since file and path that have spaces need quotes around them;
gcTable = ["] + GETFILE('', 'Import File', 'Import', 0,'Import Account Reconcilement Data') + ["]

IF FILE(gcTable)
   append from (gcTable) delimited
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform