Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Combo Box with One to Many Form
Message
From
22/04/1998 11:07:50
 
 
To
21/04/1998 18:28:12
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00093842
Message ID:
00094014
Views:
41
The .DisplayValue property actually is the source of what you see displayed in the comboBox. Usually, the displayValue and value would be equivelent. Hint: a difference in the two is how you know the user entered a new value for the a combo drop down style combobox.

What style _are_ you using, btw? DropDown List?

If you're using 5.0 and set BoundTo = .T. to make the value connected to the return value and not the index value.

>I used the One to Many Wizard to create a form. After it built the form I replaced some of the TextEdit Boxes with ComboBoxes(which will be more appropriate for my form). When I add a record though, the ComboBox will not update with the new Name. I have to select the newname from the ComboBox list. Everything functions normally from there.
>
>Is there any way to make the ComboBox refresh its display and set all associated values to the new values (ie blank for most of them).
>
>I tried setting the value of the ComboBox:
> thisform.cbobox1.value = newvalue.
>
>but that failed miserably and had the nasty sideffect of changing my keyfied value to that of recno 1. (Can someone explain this?)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform