Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox Help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00145776
Message ID:
00145781
Vues:
32
>I have a form with a dropdown combo box that's not working properly. If I select a value from the dropdown list, I get the correct info. for the 2nd field. If I type in a value that is new, the 2nd field takes the info. from the 1st record in the index order. What is wrong?
>
>In the Valid of the combo box I have
> lcName = thisform.cboName.value
> SEEK lcName
> if !found()
> thisform.edtfld2.value = space(5)
> else
> thisform.edtfld2.value = fld2
> endif
>
>Thanks

Jane,

You need to change the code to look at the DisplayValue instead of the Value property. Value will never cotain a value that is NOT in the list, but DisplayValue will contain what the user typed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform