Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Boxes
Message
De
06/11/2002 14:34:15
 
 
À
06/11/2002 14:16:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00719476
Message ID:
00719495
Vues:
17
>I have a combo box named 'freq' with hand entered values of:
>
>'Monthly' for a field name freqtaxpay which stores the value 'M'
>'Quarterly' for a field name freqtaxpay which stores the value 'Q'
>'Semi-Annual' for a field name freqtaxpay which stores the value 'S'
>'Annual' for a field name freqtaxpay which stores the value 'A'
>
>The combo box displays the correct value when navigating through the file. However, if I want to change the value in the combo box, how can I update the field name with the correct 1 character value without issuing a replace command? My hope is to have it saved after selecting the Save button which runs the standard code (plus several additional verifications) used in the base class (similar to how a m. was saved in 2.6). Is there any way to do this? Any help is appreciated.

You didn't say what the RowSource was, but I do this easily with a combobox set to 5 - Array, a two-column array [Monthly;M;Quarterly;Q;SemiAnnual;S;
Annual;A] and BoundColumn set to 2. Set the columnwidth to ##,0.

Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform