ComponentOne True DataControl 8.0
MaxLength Property

Sets/returns the maximum length of data accepted by a field.

Syntax

Field.MaxLength= long

Remarks

Read/Write at run time and design time. Property applies to Field object.

This property indicates the maximum number of characters allowed for string field values. It is only relevant for string fields (Type = 8 – String).

For data fields (FieldKind = 0 – Data) in data source mode (DataMode = 0 – DataSource), MaxLength is determined by the data source and cannot be changed. For other fields, it can be set to restrict the length of allowed field values.

If the MaxLength property is set to 0, or to inverse zero (the negative long integer with all bits equal to 1), the length of field values is unrestricted. This is the default value of the MaxLength property.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback