Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement stored in string variable
Message
From
12/08/1999 11:58:29
 
 
To
12/08/1999 10:14:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00252950
Message ID:
00253039
Views:
27
>I have a string variable that contains a SQL statement I want to run. How can I 'execute' this variable so the program recognizes the query and runs it?

You can macro-expand it; for example:
cSQLSelect = 'SELECT * FROM MyTable INTO CURSOR MyData WHERE MyField = cSomeValue ORDER BY SomeField
&cSQLSelect
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform