Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get grid to show a translated field value
Message
 
 
À
11/02/2009 19:42:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01380336
Message ID:
01381101
Vues:
67
It is actually not my question, but Alejandro's question.

My question to you is - do you use www.foxclub.ru forum on a regular basis? If yes, would you please search there or ask this question? I do remember that this problem was discussed about ~2 years ago and I remember that Vladimir Maksimov participated in the discussion, but I don't know how to search there by the author and the phrase and I don't have an easy access to Russian keyboard, so when I tried to search, I didn't find anything related.

May be you can be more lucky than me or just can ask this question again in my behalf.

Thanks again.

>Well, I didn't understand WHAT do you want to change in WHAT field ? As I see, you have one mother table (MOM.DBF) with some kind of identifyer fileld (for instance, numeric field KIDNUM) and you have a child table (KID.DBF) with fields KIDNUM and KIDNAME.If you want to see the values of KIDNAME filelds while browsing MOM.DBF, you can use my previous suggestion. In that case, while you are moving through MOM.DBF, Column.Controlsource will return you the values of KID.DBF, found via MyFunction() call for every record.
>It was description of "how to return values of kid table while browsing mother".
>If you need simply to transform/translate MOM.DBF field value (to see it in some other format) - the same way. Put MyFuction() into Column.ControlSourse and a function will return a needed value into your grid.
>What about "to change" - I must understand, in what form/format you'll be changing an original field value (regardless of that, is it a kid field or a native mother field).To make it clear, imagine you have "Some Text" in MOM.DBF field, function MyFunction(0 shows it like "SOME TEXT" and you want to correct it it like "some other text". To change an original value of field you must first show it "as is" and user will correct it in ORIGINAL format. Then, MyFunction() will return you a new visible form of changed value. I frequently use such outer functions call to view the filelds from another tables or to view a native field, but in special form. I repeat - only view, but not edit. You must edit a field value in it's original format taken from it's original placement (table).
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