>Hi,
> I have a combo box that show 2 fields in form. The 2nd field is set 50 characters long in table.
> Is it possible to set combo box to show the 2nd fields with dynamic width, instead of showing long empty space since the data stored in table may be just 20 characters?
>
>Thank you
I do not believe you can set this dynamicly, but you can at your form init run this code. It will set the width of the column to the longest field in the table. The value for ???? you have to define as the length of one character. That depends on the font (size) you use.
select max(len(mytable.mymemo)) from mytable into array lnLen
thisform.mygrid.mycolumn.width = lnLen * ????