User:anonymousLog inRegister
Recents:
Caption Property

Scope

Objects: Transactions, Web PanelsWork 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.

Examples

Form.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).

Created: 05/30/07 01:27 PM by gp Last update: 07/14/10 12:37 PM by prodml
 
Page
Categories
Group
 
Powered by GXwiki 3.0 (generated with GeneXus X Evolution 1 U3)