Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using parentheses in view designer
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00524388
Message ID:
00524413
Views:
14
You could put
"(Empmaster.termdate =CTOD("") OR Empmaster.termdate > DATE())" in the expression field and set the Criteria to "=" and Example to ".T.". We found that you can't input a "." as the first character in the Example field but you can enter any other character first and then go back and delete the first character after inputing the ".T.". I don't think this is an optimizable expression.

HTH,
Dan

>Is it possible to use parentheses in the local view designer? I have a WHERE clause that reads:
>
>WHERE Empmaster.deptcd == ?cDept AND Empmaster.termdate =CTOD("") OR Empmaster.termdate > DATE()
>
>I need it to read:
>
>WHERE Empmaster.deptcd == ?cDept AND (Empmaster.termdate =CTOD("") OR Empmaster.termdate > DATE())
Previous
Reply
Map
View

Click here to load this message in the networking platform