Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does this logic make sense to you?
Message
De
25/07/2012 10:33:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01548988
Message ID:
01549222
Vues:
47
>>If you implement more options than !empty() via the char field, you are already well along the slippery slope of magical constants -
>>the usual remedy being a lookup table with text and perhaps logic to be balanced against existing fwk support and update frequency.
>
>This particula field right now will have just to values, 'Y' and 'N'. The database default will set the value 'Y' and user could change it to 'N'. That is all.

You're lucky that you can do so. Most often, such a field is an afterthought, when you already have trucks full of records in such a table, and you can't rely on having the value in old records properly filled in. So you go with .f. being a default for new boolean field in old records, and then name it so that the value of .f. is the default. Thus my forced choice for such fields is "Inactive", "Deleted", "Removed" and such words with implied negative.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform