Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BoundTo and combobox
Message
From
25/06/2003 10:11:06
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00803585
Message ID:
00803756
Views:
25
James

Try setting the displayvalue = value in the init. You should not have to do this but this has worked for me in the past.

>Thanks for responding Dave. I have tried calling both methods, but nothing seems to work. It displays properly if the boundto is set to .f., but then the incorrect value is saved (the row number, not the data value). This is getting frustrating!
>
>>James,
>>
>>Do you call .Requery() after teh RowSource is set? Do you call thisform.Refresh() as the .ControlSource changes rows?
>>
>>>I'm a bit stumped. I have three comboboxes that are bound to integer fields in a table. The rowsource is a query on a lookup table. The query pulls back a description and an id (integer). The bound column is set to 2, and the boundto property is set to .t. Everything saves the way it's supposed to, but when the form is loaded the values are not displayed. When the user clicks on the control the correct row is selected, but I can't seem to get things to display properly when things are initialized. Any clues? This is probably really simple, but at the moment it's beyond me.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform