Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution of SQL statement
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Macro substitution of SQL statement
Miscellaneous
Thread ID:
00168161
Message ID:
00168161
Views:
64
I have been using the following code for quite some time without any problem. However, if the path has an embedded space, it bombs out with a "Command contains unrecognized phrase/keyword".

m.lcPath = AddBS("C:\December 1998")
m.lcSQL = [SELECT * ] + [FROM ] + ForcePath( "entry.dbf", m.lcPath ) + [ INTO ARRAY aFees]

*-- Execute SQL statement
&lcSQL
*-- or
EVAL(m.lcSQL)

Any suggestions.
Juan L. Romero
gcandela@javanet.com
Next
Reply
Map
View

Click here to load this message in the networking platform