Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a SQL select statement
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107813
Message ID:
00107991
Views:
33
Mat,

Just to add a little to the other replies, you are better off just building the phrases as strings and issuing:

lcSQL = "from table..."
SELECT &lcSQL

instead of

lcSQL = "select ..."
&lcSQL

If it should happen that you don't have any other SELECT statements in your code an .exe can fail with a "Feature Not Available" error because VFP wouldn't include the necessary support for the SELECT command since it didn't find any SELECT statements during the compile.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform