Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does this logic make sense to you?
Message
From
23/07/2012 10:02:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01548988
Message ID:
01549005
Views:
82
This message has been marked as the solution to the initial question of the thread.
>>So it does not matter what I name it

I think that names matter a lot.
Many of the programming errors I make or uncover can be attributed to faulty naming of procedures or variables. Good naming, on the other hand, makes maintenance a lot easier.

As far as this problem is concerned, I typically add a character field that indicates the status of the item. In this case it would be named partstatus and "A" would be active and "I" would be inactive. The use of characters allows for more choices, should they become necessary.
A part could be not yet active because some event, such as QC approval, has not occurred, or it could be obsolete.
Using a character type allows that distinction if needed.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform