Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 EditBox: Any way to tell how many lines?
Message
De
12/08/1999 10:07:49
 
 
À
06/08/1999 17:54:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00250939
Message ID:
00252946
Vues:
14
You can use MEMLINES(Editbox.Text). MEMLINES() is meant to return the number of lines in a memo field, however I'm using it(along with MEMLINE()) in some code to parse through the text in an editbox. HTH.

>Is there any sample code for figuring out how many lines the current value of an EditBox is taking up, taking into account font and wrapping issues?
>
>I want to auto-size my editbox to as small a size as can hold the arbitrary text passed in (or optionally, is there some way to get TextBoxes to display multi-line text?).
>
>Thanks as always,
>
>-- jas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform