Caption Property (Controls)

Gets or sets the caption text of the control.

object.Caption = [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 display text.

Client support

   Newlook Smartclient

   Newlook Server

Use

The Caption property behaves in the following way for the various controls:

 

When setting this property for controls, the 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. Be aware that expressions are not supported in the tab page object.

BE AWARE THAT:

Setting the Caption 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 Caption 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 Caption property and click the Default button at the top of the properties grid.

See Also

Message property | Text property | Variable property | Caption property (Form object)

Applies To

Check box control

Command button control

Frame control

Label control

Menu button control

Option button control

TabPage object


© 2004-2021 looksoftware. All rights reserved.