Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying first value in dropdown list
Message
From
24/07/1998 10:15:04
 
 
To
24/07/1998 10:11:17
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00120956
Message ID:
00120967
Views:
27
>>>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?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform