Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting in a combobox
Message
 
To
10/09/2008 18:56:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346494
Message ID:
01346495
Views:
11
This message has been marked as the solution to the initial question of the thread.
>I may have asked this before and forgotten. Is there a way to cause a combobox selection to default to the first item in the list when the form starts up? My rowsource is an sql statement and I would like the first item to be selected by default.
>
>Thanks

You can use something like thisform.myCombobox.ListIndex = 1
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform