Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set filter to not empty()
Message
From
02/01/2014 12:40:50
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01591204
Message ID:
01591258
Views:
77
>Hi
>
>I would like to set filter to a not empty condition
>
>Something like: Set filter to not empty(myfield).
>
>But it does not work because this is not the correct syntax.
>
>Is thre anyway to achieve it or set filter is not the solution ?
>
>I tried Set filter to not myfield # "", but it is not the same.
>
>
>Happy New Year to everybody.
>
>Moises

Sergey pointed out a slip.

lcSpaces=chr(34)+space(len(myfield))+chr(34)
SET FILTER TO UPPER(myfield) # &lcSpaces.

assuming an INDEX ON UPPER(myfield)....
Previous
Reply
Map
View

Click here to load this message in the networking platform