Solved it. ColumnCount = 2 was missing.
>>Hi everybody,
>>
>>This is the code I have in the Init of my form:
>>
>>store .f. to .cboFieldRequest.visible, .lblFieldRequest.visible
>> .cboInsurances.top = .cboFieldRequest.top
>> .lblInsurance.top = .lblFieldRequest.top
>> ** Get list of insurances for this account
>> =Trans_insurances_list(.oCallingForm.cTrans_pk,"c_Trans_Insurances")
>> .cboInsurances.RowSourceType = 6
>> .cboInsurances.RowSource = "c_Trans_Insurances.cText, cTrans_Insurances_pk"
>> .cboInsurances.ColumnWidths = "50,0"
>>
>>For some unknown reason when I open this combobox it displays very long text instead of specified ColumnWidths.
>>
>>Do you know what is wrong?
>
>
>What's the actual length of c_Trans_Insurances.cText? Because, the columnWidths control only the widths of columns when dropped down - not the displayvalue.
If it's not broken, fix it until it is.
My Blog