Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to set default value for combobox?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427909
Message ID:
00428098
Views:
18
>Hello Trey,
>
>I had THISFORM.combobox.Value = "County" in my Form Init, but it's not getting into the form. And I have THISFORM.Refresh at the end of the Form Init code.
>And "County1" is one of the values in RowSource as in County1, County2, County3.
>

The problem is, after you set the value property, you call refresh (actually, you don't even have to call refresh, it happens automatically after the init), which sets the value of the bound combp back to the value of the field it is bound to. To set the value of the combo, set the value of the underlying field.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform