Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting Number Of Rows Entered In EditBox Control
Message
De
30/09/1999 11:53:07
 
 
À
30/09/1999 11:30:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00271109
Message ID:
00271125
Vues:
23
>There is a built in facility to limit the number of characters entered into one of these controls, but there does not seem to be a way of limiting the number of lines entered, irrespective of how many characters are on each line. Does anybody have a workaround?
>
>TIA, Kevin

If you're talking about basing the number of lines in the editbox on the number of CRLFs then you might could test on the number of CRLFs in the string in the Keypress event only testing when Enter is pressed or something like this. You'd probably have to fiddle with a good bit to get it to work.

If you're basing it on the number of lines displayed with Wordwrap on irrespective of CRLFs, I don't see any reliable way to do it cause it would depend on editbox size and font type and size at any given time.

Other than this, perhaps there is an ActiveX control out there taht will give this functionality.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform