Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

MaxLength Property, SftMask Object

Defines the maximum number of characters in the control.

Syntax

Get

VB.NETLimit = object.MaxLength As Short
VBLimit = object.MaxLength As Integer
C#.NETshort Limit = object.MaxLength;
VC++short Limit = object->MaxLength;
short Limit = object->GetMaxLength();
CHRESULT object->get_MaxLength(short* Limit);

Put

VB.NETobject.MaxLength = Limit As Short
VBobject.MaxLength = Limit As Integer
C#.NETshort object.MaxLength = Limit;
VC++short object->MaxLength = Limit;
void object->PutMaxLength(short Limit);
CHRESULT object->put_MaxLength(short Limit);

object

A SftMask object.

Limit

Defines the maximum number of characters that can be entered, between 0 and 300. If 0 is specified, the limit is 300.

Comments

The MaxLength property defines the maximum number of characters in the control.

The MaxLength property is used to limit the maximum number of characters than can be entered when the control is used as a simple edit control.

The MaxLength property has no effect if the control is used as a Masked Edit control (with Mask). The maximum defined number of characters only applies when the control is used as a simple edit control.

See Also SftMask Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.