SftMask/OCX 6.5

SftMask.MaxLength Property

Softel vdm, Inc.

Defines the maximum number of characters in the control.

Syntax       

Get

VB.NET

Limit = object.MaxLength  As Short

VB

Limit = object.MaxLength  As Integer

C#.NET

short Limit = object.MaxLength;

VC++

short Limit = object->MaxLength;
short Limit = object->GetMaxLength();

C

HRESULT object->get_MaxLength(short* Limit);

Delphi

Limit := object.MaxLength   : Smallint;

Put

VB.NET

object.MaxLength = Limit  As Short

VB

object.MaxLength = Limit  As Integer

C#.NET

short object.MaxLength = Limit;

VC++

short object->MaxLength = Limit;
void object->PutMaxLength(short Limit);

C

HRESULT object->put_MaxLength(short Limit);

Delphi

object.MaxLength := Limit   : Smallint;

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.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com