Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding quotes to a string
Message
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:
01166073
Views:
12
>>>Hi all, i'm implementing a dinamyc filter but i'm getting error in next case:
>>>set filter to LINE_STATUS = 'INV' or LINE_STATUS = 'NQH' and (alltrim(UPPER(HOSPITAL)) == 'JFK')
>>>I need to add quotes FOR -> (LINE_STATUS='INV' OR LINE_STATUS='NQH') to let filter works in this case. Some ideas?
>>>T.I.A.
>>Better:
>>
>>TEXT TO lcFilter NOSHOW PRETEXT 15 [TEXTMERGE]
>>     (LINE_STATUS = 'INV' or LINE_STATUS = 'NQH') and alltrim(UPPER(HOSPITAL)) == 'JFK'
>>ENDTEXT
>>
>>*** or as Sergey suggested:
>>TEXT TO lcFilter NOSHOW PRETEXT 15 [TEXTMERGE]
>>     INLIST(LINE_STATUS, 'INV','NQH') and alltrim(UPPER(HOSPITAL)) == 'JFK'
>>ENDTEXT
>>
>
>I would suggest to not use filters at all <g> It's so outdated <g>

:o)
I didn't
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform