Gets or sets the current value of the control or object.
object.Text = [string]
Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the current value of the control.
The Text property behaves in the following way for the various controls:
This property returns the current text value in the system clipboard.
This property sets or returns the current value of the control.
This is true even when the ShowDropDownListValues property is False and the Style property is ComboDropDownList (a static, description-only list). In this scenario the Text property will return the underlying value of the currently selected description.
Setting the Text property of a host field in Designer will override the value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
If a combo box is bound to a data source via the DataField and DataSource properties, any value specified in the Text property at Design-time will be ignored.
This property returns the current value of the specified data grid cell.
Setting the Text property of a host field in Designer will override the value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
This property returns the text of the specified column's header.
There may be times when you wish to enter a multi-line string as the column header text. There are two ways to do this:
Chr(13)
to insert line breaks - this method is useful if you wish to set multi-line text at runtime. Setting the Text property of a host field in Designer will override the value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
This property sets or returns the current value of the control.
Setting the Text property of a host field in Designer will override the value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
If a control is bound to a data source via the DataField and DataSource properties then any value specified in the Text property at Design-time will be ignored.
This property sets or returns the display text for the specified function key.
Setting the Text property of a host field in Designer will override the value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
This property returns the value of the current item in the list box. If the list comprises of value-description pairs, then only the value of the selected item will be returned in the Text property.
Not available at design-time and read-only at run-time.
The behavior of this property has changed from version 11 onwards.
This property sets or returns the current value of the control.
If a control is bound to a data source via the DataField and DataSource properties then any value specified in the Text property at Design-time will be ignored.
This property sets or returns the current contents of the control.
There may be times when you wish to enter a multi-line string as the control's text. There are two ways to do this:
Chr(13)
to insert line breaks - this method is useful if you wish to set multi-line text at runtime. Setting the Text property of a host field in Designer will override any value sent through from the host for that field. If you have accidentally set the Text property of a host field in Designer and you wish to revert back to the default host value, it is not enough to delete the entered value - you will need to position your cursor in the Text property and click the Default button at the top of the properties grid.
If a control is bound to a data source via the DataField and DataSource properties then any value specified in the Text property at Design-time will be ignored.
This property may be entered as an expression in the Designer property list, by preceding the expression with an equals (=) sign. The expression will be evaluated when the Form is initialized, and the property will be set to the result of the expression.
Format property | MaxLength property | PasswordChar property | Value property | Variable property | Caption property
© 2004-2021 looksoftware. All rights reserved.