ISMemo.WantReturns

Description

This property is True if return characters can be inserted into the text of the specified memo control. If the property is False, the Return key will be processed by the form where the memo control is placed. It is not accessible in the Object Inspector.

Syntax

object.WantReturns

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

Return Value

bool

Example

Display WantReturns for the specified memo control.

Dim aMemo
Dim aMemoInfo

Set aMemo = Form.Controls_("memComment")
aMemoInfo =_
  "ShortName: " & aMemo.ShortName & vbNewLine &_
  "Type Name " & aMemo.TypeName & vbNewLine &_ 
  "Want Returns: " & aMemo.WantReturns
 
Profile.MsgBox(aMemoInfo)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0