Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to limit the input size of a memo field?
Message
From
21/05/1999 17:52:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00221484
Message ID:
00221623
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform