Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box - Having a senior moment!?
Message
From
09/03/2010 07:01:16
 
 
To
09/03/2010 06:47:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01453399
Message ID:
01453405
Views:
48
>I'm having a serious senior moment this morning, as I attempt to work on 3 projects at once!?!
>
>I have a combo box with:
>
>myCombo.rowsource = 'All,Prospect,Live,Interviewed,Unavailable,Do Not Use'
>myCombo.rowsourcetype = '1 - value'
>
>When I load the form, and execute myCombo.value = 'All', the combo box shows no value by default. It's driving me mad as I've obviously over-looked something.

I prefer to use something like this.
* ComboBox.Init
this.Style         = 2
this.RowSourceType = 1
this.AddListItem("All",         1)
this.AddListItem("Prospect",    2)
this.AddListItem("Live",        3)
this.AddListItem("Interviewed", 4)
this.AddListItem("Unavailable", 5)
this.AddListItem("Do Not Use",  6)
this.ListItemId = 1
Previous
Reply
Map
View

Click here to load this message in the networking platform