Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox
Message
From
24/08/2008 21:11:06
 
 
To
24/08/2008 18:33:34
James Wolff
Creative Computing, Inc
Angola, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01341401
Message ID:
01341413
Views:
12
Hi James.

Are you telling the second combobox what to display? For example -

.Combo2.Requery()
.Combo2.Value = .Combo2.List[1, .Combo2.BoundColumn]
.Combo2.Refresh

1) The .Combo2.Requery might have to be a Combo2.Clear and a bunch of Adds, depending on how you are filling it.
2) You can replace .Combo2.BoundColumn with the actual BoundColumn unless that's likely to change.

Ian Simcock.



>I have 2 combo boxes on a form.
>ComboBox 1 has a List of Weeks.
>ComboBox 2 has a list of events for that week.
>In ComboBox 1 InteractiveChange event, I have code to requery cboBox2
>This works fine.
>My problem is that I want combobox 2 to show the first item after the requery without my clicking on the combo box to see it.
>I have tried several methods in the comboBox 1 InteractiveChange procedure, but none work!
>I think this would be a common desire and would appreciate your help.
>Thanks
>Jim Wolff
Previous
Reply
Map
View

Click here to load this message in the networking platform