UserGuide

Web Text Area

From Xojo Documentation

The Text Area control is a multi-line text field, such as what you might use to post on a discussion forum for example. Unlike the Text Area for desktop applications, the Text Area for web applications does not support styled text.

Use the Set Default Value feature to specify the default text for the text area.

Below is a list of commonly used event and properties and methods. Refer to WebTextArea in the Language Reference for the complete list.

Events

ValueChanged

Called when the value has been changed, but only after the control has lost focus.

Properties

ReadOnly

Use to get or set the read-only setting. When read-only, the user cannot type in the Text Area, but they can copy text from it.

Value

Contains the value displayed in the Text Area.

Methods

SelectAll

Selects all of the text displayed in the Text Area.

Usage

To get the text the user entered in the Text Area, use the Value property:

Var description As String
description = DescriptionArea.Value

To set the text of the Text Area you also use the Value property:

DescriptionArea.Value = "It is full of stars."

See Also

WebTextArea class; UserGuide:Web UI, UserGuide:Web Text Field topics