Text

Syntax

object.Text [= string]

The parts of the Text property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
string A string expression specifying text.

Remarks

At design time only, the defaults for the Text property are:

For a ComboBox with the Style property set to 0 (Dropdown Combo) or to 1 (Simple Combo) or for a TextBox, this property is useful for reading the actual string contained in the edit area of the control. For a ComboBox or ListBox control with the Style property set to 2 (Dropdown List), you can use the Text property to determine the currently selected item.

The Text setting for a TextBox control is limited to 2048 characters unless the MultiLine property is True, in which case the limit is about 32K.