Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display Value
Message
From
08/10/2003 15:59:41
 
 
To
08/10/2003 15:45:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00836438
Message ID:
00836456
Views:
12
What's interesting is that if I set the DisplayValue and Value properties to "N" on the property sheet nothing will show in my combobox. BUT...if I set those same properties through code (as you show below) the value shows up just fine. BUG?

>SWAG:
>Is the Value in the combo's RowSource? If it's not it won't show up.
>e.g.,
>
>ocombo.AddItem("A")
>ocombo.AddItem("B")
>ocombo.AddItem("C")
>ocombo.DisplayValue="D" && you see D
>ocombo.Value="D"        && you see nothing
>
>
>>When I put a something in the Value property of a combobox, nothing displays on the screen for that combobox. Whereas, if I put something in DisplayValue something will display. If I put a value in both, nothing will display. I am sure I am doing something wrong, or forgetting to switch another property somewhere. What can I do to have a default value display on the screen as well as have something stored in the value property? I would prefer to do this on the property sheet and not hardcode it.
Previous
Reply
Map
View

Click here to load this message in the networking platform