Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does this logic make sense to you?
Message
 
 
To
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:
01549057
Views:
43
>>>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.

I have changed my mind and decided to go with your suggestion; a character 1 len type.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform