Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet another ComboBox question
Message
From
20/11/1997 09:29:52
 
 
To
20/11/1997 09:19:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00061352
Message ID:
00061369
Views:
54
>>I have a ComboBox with
>>RowSourceType=2
>>RowSource=cursorname (cursor created in Form.Load)
>>BoundColumn=1
>>DisplayValue=2
>>
>>When I choose an item in the list, the value of the box doesn't change. I have tried in the InteractiveChange event putting This.Value=cursor.fieldvalue
>>Any suggestions on what I'm doing wrong?
>
>Two questions:
>1. What is is ControlSource? 2. What's the idea to have DisplayValue=2 ?

I did get this straightened out. I simply changed the order of the fields in my cursor, changed BoundColumn=1, and Reset DisplayValue to Default.

I usually use the builder for ComboBoxes, but being that the builder doesn't support RowSourceType of 2, I had to do this one by hand. A first I might add. The problem I usually have with these is when I need the ComboBox to display a value from a field other than the first. BoundColumn and ControlSource never seems to be a problem, but it's the display properties that get me...

Thank you, Ed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform