Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box : Not showing values unless focus is set to it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00145892
Message ID:
00162890
Vues:
29
>Try
>This.Value=This.List(1) in the init of each combo box - works for me
>Ashley
>
>
>>>>Hi All,
>>>>
>>>> I have faced a major problem with VFP 5.0. I have several Combo boxes on the Form/PageFrame. All of them are bound to data with RowSourceType is set to 6 (Fields).
>>>> Problem I am having is, when I load the form, none of these combo show values at startup though there is a some value in Value property. It displays these values only if you set focus to it.
>>>> Is it a Bug or am I missing something?
>>>>
>>>> BTH, I am using VFP's Standard Combo and no method is written.
>>>>
>>>>Bye
>>>>Jayesh
>>>
>>>Jayesh,
>>>
>>>Did you ever find a solution to this? I think I have the exact same situation you're describing for all my comboboxes, but have really just lived with it. But in some cases I really would like to have a default value instead of showing nothing.
>>>
>>>Sylvia
>>
>>Sorry for the late response, I didn't catch this thread at its origin, only reviewing it now.
>>
>>Is the length of the field that the combo is bound to shorter than the length of the field in the rowsource? This has caused this same problem for me until I pegged it.

Hi Ashley,
This doesnt accomplish what is needed. Sylvia was wanting a combo box to show the item in the list that corresponds to the value of the Value property of the combo box, not the the first item in the list.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform