Text Property (Visual FoxPro)
Contains the unformatted text entered in the textbox portion of a control. Not available at design time; read-only at run time.
Unlike the Value property, the value contained in the Text property is unformatted and is identical to the text entered in the control by the user.
The unformatted text contained in a control's Text property can differ from the control's Value property for the following reasons:
The Value property may not be of Character type; it may contain a Date or Numeric value.
For an edit box, the Value property may add line feeds to the text entered in the edit box, providing compatibility with previous versions. For this reason, using the Text property is the preferred method for selecting text with the SelStart and SelLength properties.
If the Format property for the control uses the R setting, input mask characters are removed from the Value property.
If the Style property for a combo box control is set to 2 (Drop-down List), the Text property contains the empty string because the ComboBox does not have a text box.