Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Formatting of Field Values
Message
De
20/08/2008 09:27:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/08/2008 09:22:45
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01340331
Message ID:
01340356
Vues:
9
>Just show it.

Oh, that should be simpler than I thought, then. Just make a UDF that takes the field and formats the result according to some rule.

I think that the real question is, depending on what condition do you want to change the display format? Depending on the answer to that question, you will put the formatting options into different places.

A certain field always uses a certain format: some sort of data dictionary.

The same field will appear different for different users (depends on user preferences): some table that stores user preferences.

The same field will appear different between different records, depending on some additional criteria: either deduce the formatting from other fields, or store an additional field for the display options.

There are probably some other combinations possible, too.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform