Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have dynamic column width for combobox?
Message
 
À
18/01/2001 21:52:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00465542
Message ID:
00465588
Vues:
8
>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 * ????
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform