TX Text Control ActiveX

Text Property

Property

Returns or sets the text belonging to an XML element.

Syntax

XMLElement.Text [= Text]

Data Types

String.

Examples

The following Basic example sets the text of the second address in an XML document that contains addresses consisting of the sub-elements Name, Street and City. Because the Text property is the default property of the XMLElement object the two lines of code are equivalent:

TXTextControl1.XMLElements("Address")(2).Text = "Jack Miller" & Chr(10) _
& "Baker Street" & Chr(10) & "New York"

TXTextControl1.XMLElements("Address")(2) = "Jack Miller" & Chr(10) _
& "Baker Street" & Chr(10) & "New York"

Limitations

Run time only.

Remarks

If the element consists of several sub-elements, the text parts must be separated through linefeed characters (Chr(10)).

See Also