ISEdit.MaxLength

Description

The maximum number of characters that can be entered into the edit control.

Syntax

object.MaxLength

Part Attribute Type Description
object Required
The object always implements the ISEdit interface

Return Value

int

Example

Display some information about the specified edit control, including the maximum number of characters that can be entered into the edit control.

Dim aEdit
Dim aEditInfo

Set aEdit = Form.Controls_("edtInform")
aEdit =_
  "Short Name: " & aEdit.ShortName & vbNewLine &_
  "TypeName: " & aEdit.TypeName & vbNewLine &_   
  "Max Length: " & aEdit.MaxLength
    
Profile.MsgBox(aEdit) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Max Length can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the edit control in the controls tree > MaxLength.

Version information

Added in v7.8.0