Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stupid Newbie ComboBox Question
Message
 
 
To
31/12/2007 14:06:21
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01278633
Message ID:
01278699
Views:
24
>>>Haven't had to create one from scratch in awhile. How do I force the initial display value of the ComboBox? It's based on a SQL and displays a field value. I want to choose which record is the default and then have that show up when the form is run. Thanks!
>>
>>You may try thisform.myCombo.ListIndex = 1 in the Init method of the form.
>>
>>You may also first select the needed record and then thisform.myCombo.value = thisform.myCombo.value
>
>That worked, but why? I set that as the default on the property form? Seems like that should have been enough.

What exactly did you set as default?

ListIndex you can only set in code, I think.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform