Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help - Not as simple as I thought!!?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00894047
Message ID:
00894068
Views:
8
Thanks to both of you for your help. Your suggestions did work. However, I found an even easier solution. I set my RowSource to "January,February,etc."

I set my control source to a numeric month value and the BoundTo value to .F. According to Fox help, this causes the listbox to use the Index as the value rather than the list item. So, the listbox returns 1 into my ControlSource when January is selected, etc.

Thanks again for taking the time to offer help!

Rodd

>I had posted a question asking if it was possible to define dual column values at design time in a combobox (dropdown listbox). I thought I had the answer but there is a further complication.
>
>I can define the columns by setting my RowSource property to:
>
>January,1,February,2,March,3,etc.
>(RowSourceType = 1)
>
>However, in order for this to work, I have to set ColumnCount to 2 which causes the month number to be displayed. I only want the month description displayed but I want the month number to be the BoundColumn.
>
>Is there a way to do this without having to build a small table or array?
>
>Thanks so much for your help.
>
>Rodd
Previous
Reply
Map
View

Click here to load this message in the networking platform