Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo DisplayValue Won't Stay Set
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01076265
Message ID:
01076325
Vues:
23
What is the RowSource for the combo? I think you have to blank it about before your manipulations and then reset.

>I have a three-character field that gets set with a combo box. The combo box must contain a description of the three-character code, to the right of the code (e.g. - "F06 - FedEx Express 3-Day"). After setting the code, the drop-down must display only the three-character code, with the description to the right of it, on the form.
>
>In the Init() code, I have the combo set up with just the three-character codes, and the form display is correct. When the combo is clicked, the When() code resets the items to include the descriptions, so that they will be included in the drop-down. After clicking a selection, the Valid() code calls the Init() code, to reset the items back to three characters.
>
>The Control Source for the combo is a variable, which is a property of a public variable: oVar.fldNCR_Ship_Via.
>
>Everything is running properly up to the point of the form refresh. The variables contain the expected values every step of the way. However, when the form refreshes, the DisplayValue property is cleared, and the combo appears blank, even though the control source still contains the correct value.
>
>What could be causing the DisplayValue to reset?
>
>---Michael
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