Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display description in a grid column rather than code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00490488
Message ID:
00490584
Vues:
8
Hi Barbara,

The problem here, that I don't have code+description as a separate table. I created an include file, where I set variables, like APNEDT "E", etc. I was thinking, is it possible to set controlsource like iif(APNEDT,APNEDTDESC,...). Since there are ~5 different values, it would not be convenient to use iif, it's better to use some function here. My question is: could it be done?

If not, I'd better give up this idea, because it's not that important.

>Hi Nadya,
>If you just want to show the description, you could include it in a view and display the view not the table in the grid.
>
>Setting relations inside a grid can be tricky to display, but you could try it out. Sometimes it works just fine, other times not, and I'm not clear why (I now use only views in grids).
>
>Or use the combo but set it so the user can't mouse or tab into it. Then a little fiddling with the display properties ought to make it look like a text box.
>
>HTH
>Barbara
>
>>Hi everyone,
>>
>>I have a table with several fields. One of them is work field, say, status field. It's Char 1 and may have few values, like empty - nothing, C-Changed, B-Bad, D-Duplicate, E-Edited. I have an include file, there I specified all allowed codes and all descriptions. This field could be changed only in code, not directly by user. I want to show a description instead of code in a grid. I don't want to use ComboBox. How can I achieve my goal?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform