Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BoundTo and combobox
Message
From
25/06/2003 10:26:15
 
 
To
25/06/2003 10:24:36
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:
00803772
Views:
26
Thanks James,

I might be doing the same thing...



>>James,
>>
>>I just tried your suggestion. It didn't work. The value property is 0. Do you know why this happens?
>
>Sorry I don't. For what is worth, I quit using a query data source and stated using an array property as the data source. All those type of problems seemed to go away.
>
>
>
>>
>>>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
Reply
Map
View

Click here to load this message in the networking platform