Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL using Eval
Message
From
06/11/2002 15:29:57
 
 
To
06/11/2002 15:11:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00719528
Message ID:
00719543
Views:
14
>Hi. VFP7 user. I was attempting to find every record that had a quantity of > 0 in a particular field. I tried:
>
> myfield = name of field to search
> SELE * FROM mydbf WHERE EVAL('&myfield')>0

Try

SELECT * FROM mydbf WHERE EVAL(myfield) > 0

or

SELECT * from mydbf WHERE &myfield > 0
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