Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting the number of lines in a memo box
Message
De
06/09/2001 11:41:05
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
06/09/2001 11:35:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00553178
Message ID:
00553184
Vues:
14
>Hello,
>How do I limit the number of characters or lines in a memo box? I haven't been very successful...


Something like the following should work: In the KeyPress() check
IF LEN( TRIM( this.value ) ) > MyLimit
  NODEFAULT
ENDIF
You'll want to do some more advanced stuff like checking for whether the keypress is navigation key, or backspace, or delete, for example.

*sheesh. Or you could go the easy route and use Sergey's suggestion. doh!* :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform