WebTextControl.Text

From Xojo Documentation
Jump to: navigation, search
Property (As String )
aWebTextControl.Text = newStringValue
or
StringValue = aWebTextControl.Text

Specifies the text displayed in the control.

Notes

For a WebLabel, Text can be surrounded by "<raw></raw>" tags to temporarily disable HTML parsing. For example, you could bold just a single word in a WebLabel by doing this:

Label1.Text = "This is a line with <raw><b>bold</b></raw> text in it."

Examples

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"
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About