Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo displayvalue problem
Message
De
27/04/2003 04:06:51
 
 
À
26/04/2003 23:06:54
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00781911
Message ID:
00781927
Vues:
20
Alan, in the IDE save the form with the combobox enabled property set to .T. This will allow the combobox to instantiate properly when the form is run. Then in the Activate event of the form set the combobox enabled property to .F. (or whatever depending on your conditions). The form activate event happens after all contained controls are created. Thereafter the combobox enabled property will be set to whatever your form allows the user to have.


>I have a combobox which is disabled when the form is in 'view' mode and enabled when the form is in add/edit mode. When the form first displays, the combo is disabled and shows a blank value (displayvalue=''), despite the recordsource having a value which corresponds to one of the items in the combo. This is confirmed when I change the enabled property from .F. to .T. (via. the watch window), the combo enables, and the data is displayed! When the form goes-back to view-mode the combo is disabled, but the value is visible from then onwards.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform