ExpressionEdit.WantReturn

Syntax

ExpressionEdit.WantReturn

Data Type

BooleanOrPreference

Use the following constants with this data type:

  • BooleanOrPreference_False –(Value: 0) Specifies a value of False .
  • BooleanOrPreference_True –(Value: 1) Specifies a value of True .
  • BooleanOrPreference_UsePreference –(Value: 3) Use the corresponding preference option in the Expression Editing Options dialog box.

Purpose

Specifies whether the ExpressionEdit control processes the <Enter> key. When the ExpressionEdit control is not processing the <Enter> key, the <Enter> key goes to the default button.

  • When the value of this property is BooleanOrPreference_False , the <Enter> key goes to the default button.
  • When the value of this property is BooleanOrPreference_True , the control applies the <Enter> key to the expression.
  • When the value of this property is BooleanOrPreference_UsePreference , the Want Return option in the Expression Editing Options dialog box determines the setting.

Remarks

If the ExpressionEdit.Multiline property is False , this property is ignored and the <Enter> key is never processed.

See Also

Expression Editing Options dialog box

ExpressionEdit.Multiline

ExpressionEdit.WordWrap