Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying first value in dropdown list
Message
De
24/07/1998 10:23:56
 
 
À
24/07/1998 10:20:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00120956
Message ID:
00120973
Vues:
41
>>>>>I have a dropdown list with rowsoucetype alias (based on a local view). The view is requeried in the interactivechange of another combo, meaning the records are not available at the controls init.
>>>>>I would like for the user to see the first value in the list when it is populated in the combobox control as other values on the screen are already populated with info from the same record. I have tried setting value and displayvalue but cannot get it to display.
>>>>>Can this be done when rowsourcetype is alias or fields?
>>>>
>>>>You should go to rowsource :
>>>>Select view1
>>>>move pointer to the first record:
>>>>Go top
>>>>and set combo value:
>>>>Thisform.Combo1.Value=view1.field1
>>>
>>>Thanx for the response. I've done that and still get nothing in the box until I drop down the list. I can even see the correct value in the debugger...it's just not displaying. Could it be something in the boundto or boundcolumn properties? (Currently set to false and 1)
>>
>>If column1 is integer, then set boundto=.t.
>>Another thing: what do you have in Combo.Controlsource?
>
>Column1 is a char. field. Controlsource is none, this is not an updateable field.

Now, my last suggestion is that you missed to call Combo.Requery after you required the view.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform