Assuming you're using a standard INPUT statement, use the "INPUT variable [,length] [:] [_]" format.
Eg. INPUT LINE1,78_: Which allows the user to enter 78 characters, after which they will have to press enter (removing the underscore will cause an automatic enter). The colon prevents a carriage return/line feed. But before you code anything, check to see if you haven't already got some kind of text entry/notations subroutine floating around somewhere. We use a home-grown subroutine which allows our users full editing facilities for their notations (cursor up, down, casing, word wrapping, copy & paste, etc. etc). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Long Sent: Thursday, 29 March 2007 2:21 PM To: [email protected] Subject: [U2] Limit Textfield length Hi all - I have a MV field that is used for comments, so the user enters their text on line one and by pressing enter, they can continue entering on the 2nd line and so forth. Standard stuff. what I am wondering is if there is a way to limit enter in the field so that it doesn't allow them to continue typing and run off the screen. Maybe even automatically insert a carriage return when they get to the length limit. Anyone know of a way to do this? Thanks, Steve ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ DISCLAIMER: Disclaimer. This e-mail is private and confidential. If you are not the intended recipient, please advise us by return e-mail immediately, and delete the e-mail and any attachments without using or disclosing the contents in any way. The views expressed in this e-mail are those of the author, and do not represent those of this company unless this is clearly indicated. You should scan this e-mail and any attachments for viruses. This company accepts no liability for any direct or indirect damage or loss resulting from the use of any attachments to this e-mail. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
