MaxLength
Sets the maximum length of a field value (CRMEntryGroupBlock object). This doesn't change the size of the entry box. To change the entry box size, use the Size parameter.
Values
MaxLength. Specifies the maximum length of value in characters. This must be an integer value.
Examples
r = CRM.FindRecord('Company','Comp_companyid=22');
EG = CRM.GetBlock('companyboxlong');
NewE = EG.GetBlock('comp_name');
NewE.MaxLength = 5;
CRM.AddContent(EG.Execute(r));
Response.Write(CRM.GetPage());
Sets the maximum value of comp_name to 5 characters.