MultiLine Property (ATextBox)

Returns and sets whether the ATextBox object can accept and display multiple lines of text.

Syntax

Object.MultiLine [ = bMultiLine ]

The MultiLine property syntax has the following parts:

 

Name

Type

Description

Object

ATextBox

ATextBox control

bMultiLine

Bool

A boolean expression that specifies whether the object can accept and display multiple lines of text.

Where

bMultiLine can be one of the following:

 

Value

Description

True

The control can accept and display multiple lines of text.

False *

The control cannot accept and display multiple lines of text. Only one line is possible.

Comments

You must place a line break "\r\n" to a string in order to force a line break in your text. If the control is in MultiLine mode and a horizontal scrollbar is not visible then the text displayed in the control will be word wrap to the next lines even if the line break does not exist.

Example

The following example sets the control text based on the control MultiLine property value:

if tbDesc.Multiline

tbDesc.Text=GetDescFirstLine()

else

tbDesc.Text=GetDesc()

endif

The following example sets the property value to True:
 

tbDesc.Multiline=True

Applies to

ATextBox

See Also

ScrollBars, TabPositions, WantReturn