General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only