Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get grid to show a translated field value
Message
 
 
À
09/02/2009 12:15:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01380336
Message ID:
01380338
Vues:
113
>Hi,
>
>I placed a textbox inside a grid column, deleting the previously existing textbox. The new textbox is a subclass of a Codemine class which translates the table.field contents from a decimal time to an hour:minutes format.
>
>I verified that the mechanism correctly places the expected value in textbox.value, but the grid does not show the textbox.value, but rather the column.controlsource's value. If I make column.controlsource = table.field then the decimal value is presented to user, naturally. If I leave the column.controlsource blank, hoping that VFP would use textbox.value, then the first column of the table is shown.
>
>Any suggestions?
>
>TIA,
>
>Alex

Use the function for column's controlsource, e.g.

column.ControlSource = '=thisform.Translate(myTable.myField)' or just a function here.
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