Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding quotes to a string
Message
From
31/10/2006 11:11:30
 
 
To
31/10/2006 11:02:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165777
Message ID:
01165794
Views:
17
>Sorry my mystake, i mean the symbol ( parenthesis to let works filter that has OR and AND expressions. In my example a="set filter to LINE_STATUS = 'INV' or LINE_STATUS = 'NQH' AND claim=60814" &a <-- this doesn't work due to expression is trying to evaluate OR and AND in the same context, this will work in this way: a="set filter to (LINE_STATUS = 'INV' or LINE_STATUS = 'NQH') AND claim=60814" &a i need to find the way to add parenthesis to separate all OR instructions over AND instructions. Let OR instructions keep together. All this instruction with OR always will be together and the AND will be together.

lcFiltStat = "(LINE_STATUS='INV' OR LINE_STATUS='NQH') and alltrim(UPPER(HOSPITAL)) == 'JFK'"

or

lcFiltStat = [(LINE_STATUS='INV' OR LINE_STATUS='NQH') and alltrim(UPPER(HOSPITAL)) == 'JFK']


Set filter to &lcFiltStat
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform