CLEAR FIELDS

MaxLength

This property determines the maximum number of characters that can be entered in an edit box or text box.

Usage

oObject.MaxLength = nMaxChars nMaxChars = oObject.MaxLength
To let the user enter an unlimited number of characters, set MaxLength to 0. When MaxLength is non-zero, additional characters are thrown away. Be careful when you bind controls to fields. If MaxLength is less than the field length (or the current length of a memo field), if you change the data at all, the characters beyond MaxLength may be discarded.

In VFP 3, this property applied only to edit boxes. It was added to text boxes in VFP 5.

Example

This.MaxLength = 400

See Also

EditBox, TextBox


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net