From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As String )
aWebTextControl.Text = newStringValue
StringValue = aWebTextControl.Text

New in 2020r2

Supported for all project types and targets.

Specifies the text displayed in the control.

Sample Code

To set the Text for a WebLabel:

Label1.Text = "Name:"

To set the Text for a WebTextField:

TextField1.Text = "Bob Roberts"

To set the Text for a WebTextArea:

TextArea1.Text = "1 Main Street" + EndOfLine + "Anytown, NY 12345"

See Also

WebLabel, WebTextField, WebTextArea, WebSearchField classes.