Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to return what VFP will do to my code?
Message
From
19/12/2018 06:59:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/12/2018 12:23:56
General information
Forum:
Visual FoxPro
Category:
CodeMine
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01664494
Message ID:
01664622
Views:
60
>Hi Cetin,
>
>I actually do not use SET FILTER a lot anymore. Used in an older class mostly which I am now making some small performance changes to.
>
>When I did use SET FILTER, it was to basically skip some records. In the one case, the grid would show all the contacts for a company and then the user had a checkbox where they could "hide inactive contacts" (which was a flag field). When they checked the checkbox, the code would set the filter to:
>
>SET FILTER TO Inactive = .F.

Good case to show why checking the normalize()d version of an expression is mostly pointless. Your framework may be setting it like this (normalized into INACTIVE=.F.) and you may be expecting .NOT.INACTIVE and it would never match. Because anything worth doing can be done at least three ways in VFP.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform