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 10:45:31
 
 
To
19/12/2018 10:38:57
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:
01664637
Views:
51
>In this case, the field naming was more to do with how the users think - everyone is active unless they explicitly mark them as inactivated.

You could also use:
SET FILTER TO IIF(lInactive, .F., .T.)
It might convey more clearly what you're doing, that "if they're inactive don't use them."

It was Brian Kernighan (the K of K&R) of C language design fame who wrote:
"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"

There's something to be said for inefficiency if it leads to easier debug and maintenance cycles ... especially so on non-speed-critical areas of code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform