Returns and sets whether the ATextBox object can accept and display multiple lines of text.
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. |
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. |
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.
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