Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does this logic make sense to you?
Message
De
23/07/2012 10:02:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01548988
Message ID:
01549005
Vues:
83
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform