>Hello,
>
>I have a problem with the following combobox:
>
>WITH THISFORM.cboProductionStep
> .COLUMNWIDTHS = "192"
> .INCREMENTALSEARCH = .T.
> .SORTED = .T.
> .ROWSOURCETYPE = 6
> .ROWSOURCE = "Phases.phNodeDesc,phKey"
> .BOUNDCOLUMN = 2
> .BOUNDTO = .T.
> .CONTROLSOURCE = "Functions.fuphKey"
>ENDWITH
>The result:
>The combobox is not sorted, incremental search does not work, and the width of the dropdown column is higher than the combobox itself, depending on the size of the field (phNodeDesc).
>
>What am I missing??
>Thanks, your help is highly appreciated.
From the Help file for the Sorted property:
"The Sorted property is only available if the RowSourceType property is set to 0 (None) or 1 (Value)."
For the IncrementalSearch:
"A combo box with the Style property set to 0 (Dropdown Combo) will only show incremental searching in the text box if the drop-down list is shown. With the Style property set to 2 (Dropdown List), incremental searching will show in the text box, regardless of whether the drop-down list is shown."
You might also need to check the values for _INCSEEK for VFP7 and later, or _DBLCLICK for VFP6 or earlier.
For the Column width being different than the drop down, you might need to set your ColumnCount property = to 0 or 1, depending on what your current setting is.