Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have dynamic column width for combobox?
Message
 
To
18/01/2001 21:52:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00465542
Message ID:
00465588
Views:
7
>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 * ????
Previous
Reply
Map
View

Click here to load this message in the networking platform