Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp won't accept expression for column width in combo bo
Message
De
02/08/2002 17:09:21
 
 
À
02/08/2002 14:19:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00685591
Message ID:
00685712
Vues:
21
>Hi Sergey,
>
>Thanks. I just realized that after I posted, because, I guess, vfp is just evaluating it as one string.
>
>But now I realize that I need to get the width based on the txtwidth or fontmetric function, and the current font. But I am trying to figure out the right expression?
>
>str(fontmetric(6)*len(errsrt.csortname))
>
>seems to work right?
>

If this should only set the first column's width, do not set the columnswidths at all. That's it, 'Reset to default' it in Form Designer. If the first column is character, store ALLTRIM(column) in the first column of the combo. It will work ok - the width of the open list will be the same as the combo's width.

Hope this helps
Grigore Dolghin
Class Software.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform