Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to do this?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00453170
Message ID:
00453212
Vues:
14
Thanks for your response, Barbara.

I'm thinking about this to see if it's worth creating a class, because I have this situation often in an app that I am moving to VFP.

Recently I too have been storing the entire caption in the field, but I still have many "grandfather" fields.

Alex


>As Trey has said, you can bind an option group to a character field. But what I often do is store the entire caption in that field instead of the first character. In cases where the captions for the choices are fairly short, this works well, otherwise, I do some kind of translation in code.
>
>Note: This only works if your program only runs in one language. I have an app that runs in multiple languages, so the captions change. In that case, I bind the option group to a numeric field and do the translation in code, otherwise, it's difficult to code a case statement based on the value of the field. (Although, I've since come up with a scheme that will handle it.)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform