Environment versions
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Virtual environment:
VMWare
I never got to like the ! operator - I actually use NOT most of the time - I think its because I just tend to see the "NOT" in my code better than "!".
After many years I have started to move away from both of those to - I don't know what to call it - a "secondary" comparison?...comparing to the logical value wanted:
SET FILTER TO Inactive = .T.
SET FILTER TO Inactive = .F.
I plan to retire in a few years and I figure the above is more readable for someone new than:
SET FILTER TO Inactive
SET FILTER TO NOT Inactive
In the 2nd case, the (new) developer has to know or surmise that Inactive holds a logical value. And if they were an experienced VFP developer they would.
Any idea what the syntax is like for other languages?
Albert
>>
>>SET FILTER TO Inactive = .F.
>
>I prefer Set Filter to !inactive
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only