Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Unselect Combo selection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00795134
Message ID:
00795681
Vues:
79
I am comparitively a starter, definately not advanced, in VFP so please bear with me. This cbo I have will work like a textbox where you can see the typing of keys, but this one here is bound to the first col and the 2nd col I am supposed to manually populate as it is bound to the char field.

Simple cbo I know and can relate with your explanation, where it is just a list where straight values form lookup table is shown.

If you have something like the first description but works like the second desc. which I have better experience with, could you can share with me the codes on the complete class properties and methods, or can send me at the below addresses, I will be glad.

Thanks for your reponse, sorry for being slow.

>Combo boxes are particularly powerful controls because they enable you to display descriptive text from a lookup table while binding the control to its associated key value. This is possible only because the combo box has both a Value property and a DisplayValue property. Understanding the role each of them plays can be confusing, to say the least.
>
>DisplayValue is the descriptive text that is displayed in the textbox portion of the control. This is what you see when the combo box is "closed." The combo's DisplayValue always comes from the first column of its RowSource. On the other hand, the combo's Value comes from whichever column is specified as its BoundColumn. If the BoundColumn of the combo box is column one, its Value and DisplayValue are the same when the user picks an item from the list. When the control's BoundColumn is not column one, these two properties are not the same.
>
>This code merely selects the item in the combo box where the items in the first column matches what the user typed in so far
>
>
>IF UPPER( .List[ lnRow, 1 ] ) = UPPER( lcSoFar )
>  .ListIndex = lnRow
>  EXIT
>ENDIF
>
>
>The combo's ControlSource will be updated approriated depending on which column is the BoundColumn. I would assume that your integer surrogate PK would be in the BoundColumn < s >.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform