Scope
Objects: Transactions, Web Panels, Work Panels Controls in Web: Buttons, Forms, Text Blocks Languages: .NET, Java, Ruby, Visual FoxPro Interfaces: Web, Win
Purpose
Forms
Determines the text displayed in the form's title bar.
Other Controls
Determines the text displayed in a control.
Syntax
Control.Caption = Exp
Where: Control Is the name of a control inserted in the form.
Exp Is the text that will be displayed.
Description
This property sets the text that a control (Text block, Button, etc.) must display. Its value can be set either at design time or runtime. To see values that can be set at design time take a look at Dynamic Property Values. At runtime, any expression evaluating to a string can be assigned to it.
ExamplesForm.Caption = 'My Form - Update' if update; Form.Caption = 'My Form - Delete' if delete; Form.Caption = 'My Form - Insert' if insert;
In this example, the form’s title changes depending on the current mode (insert, delete or update).
|