Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ChkBox Captions in a Grid
Message
De
06/01/1998 15:13:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00069705
Message ID:
00069873
Vues:
30
>I have made a checkbox the CurrentControl in a grid column. It's value is based on a logical field type. I need to make the caption say "Yes" or "No" based on the logical value. No matter what I do, I either get all "No" or all "Yes" or no synchronization between the value and the caption. Is there a way to do this? BTW, Sparse is .f. for the column. I know this should be fairly intuitive for users to interpret, but keep in mind this if for people who have called me wondering what they did with their boot-disks in the days of workstations that booted from diskettes, among other mindless questions.
>
>TIA.

I think you're looking for a DynamicCaption property in the Column. There
ain't no such thing.

You might try using the DynamicInputMask property.
1. Put "R" in the format property of the column (so it treats the InputMask
as characters extenal to the data)
2. Put something like "iif(=.T.,'YES','NO')" in the
DynamicInputMask property of the column.

Haven't tried this, so play with it. I don't even know if it'll work on check
boxes. Actually now that I think about this, it probably won't work since the
InputMask is for displaying data, not captions, but try it.

HTH

Bill
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform