ISMemo.MaxLength

Description

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

Syntax

object.MaxLength

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

Return Value

int

Example

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

Dim aMemo
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")

aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "TypeName: " & aMemo.TypeName & vbNewLine &_
  "MaxLength: " & aMemo.MaxLength                    
  
Profile.MsgBox(aMemoInfo)  
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 memo control in the controls tree > maxLength.

Version information

Added in v7.8.0