Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to limit the input size of a memo field?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00221484
Message ID:
00221623
Vues:
13
>I would like to limit the input to n lines only for the user.
>Is it possible?
>

I don't know about limiting the number of lines, but certainly, the number of charcters can be limited with the EditBox MaxLength property trivially. I suppose you could put code in the InteractiveChange event that scanned the value for occurances of end of line (CHR(10)) using OCCURS() that would cause the KeyPress event to refuse to add text beyond the nth occurance.

>Thanks
>Eric.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform