Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying first value in dropdown list
Message
From
24/07/1998 10:29:33
 
 
To
24/07/1998 10:23:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00120956
Message ID:
00120978
Views:
30
>>>>>>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.

Sometimes its the little things....That did it thanks. I never thought of requerying the combo since it was based on a view and the data was looking good!
Previous
Reply
Map
View

Click here to load this message in the networking platform