Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet another ComboBox question
Message
De
20/11/1997 09:29:52
 
 
À
20/11/1997 09:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00061352
Message ID:
00061369
Vues:
62
>>I have a ComboBox with
>>RowSourceType=2
>>RowSource=cursorname (cursor created in Form.Load)
>>BoundColumn=1
>>DisplayValue=2
>>
>>When I choose an item in the list, the value of the box doesn't change. I have tried in the InteractiveChange event putting This.Value=cursor.fieldvalue
>>Any suggestions on what I'm doing wrong?
>
>Two questions:
>1. What is is ControlSource? 2. What's the idea to have DisplayValue=2 ?

I did get this straightened out. I simply changed the order of the fields in my cursor, changed BoundColumn=1, and Reset DisplayValue to Default.

I usually use the builder for ComboBoxes, but being that the builder doesn't support RowSourceType of 2, I had to do this one by hand. A first I might add. The problem I usually have with these is when I need the ComboBox to display a value from a field other than the first. BoundColumn and ControlSource never seems to be a problem, but it's the display properties that get me...

Thank you, Ed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform