|
|
|
|
|
- Content of Static control
- Equivalence
- Caption associated with a window or with a page
- Text of a Static, Edit, Combo Box, List Box or ListView control
- Text of with a table column
- Text of a Check Box or Radio Button control
- Caption of a Check Box column in a Treeview Table control
- Caption associated with an Image control
- Caption associated with a button
- Caption of a Tab control
- Text of a Breadcrumb control
- Managing menus: Functions or properties?
- Limitations
Caption (Property) In french: Libellé
In a database, the Caption property is used to: - Find out the caption associated with a file item.
Remark: The item was created in the data model editor or through programming. - Find out the caption associated with a data file.
Remark: The data file may have been created in the data model editor or through programming. - Find out and modify the connection caption. The connection can correspond to:
In a report, the Caption property is used to get and change the text: - of a Static control.
- of a Link control.
- of a Chart control.
In a window or page, the Caption property is also used to: - Find out and modify the caption of a control in a window or in a page.
- Find out and modify the caption of a menu option.
- Find out and modify the title of a window or page.
- Get content of a Breadcrumb control.
Reminder: The initial caption of a control, window, page or menu option is defined in the editor during the object description.
// Modify the text in the "STC_IntroControl" Static control STC_IntroControl.Caption = "Hello" + Customer.FullName // Equivalent to: STC_IntroControl.Caption = "Hello [%Customer.FullName%]" Syntax
Finding out the text of caption associated with an element Hide the details
<Result> = <Element used>.Caption
<Result>: Character string Text displayed in the specified element. <Element used>: Type of element Name of the element to be used.
Modifying the text of caption associated with an element Hide the details
<Element used>.Caption = <New text>
<Element used>: Type of element Name of element to use. <New text>: Character string New text displayed in the specified element. Remarks Content of Static control To retrieve the value of a control or the value of an item in a Static control: - In the report editor: insert [%<Control name>%] or [%<Item name>%] directly into the caption of the control.
- In programming: there are two possible syntaxes with the Caption property:
- use directly the [%<Control name>%] or [%<Item name>%] string in the string that corresponds to the caption. For example:
STC_IntroControl.Caption = "Hello [%Customer.FullName%]"
- use the name of the control or the name of the item in the caption. For example:
STC_IntroControl.Caption = "Hello" + Customer.FullName
Equivalence The Caption and Value properties are equivalent. To retrieve the text of a Static control, the following syntaxes are equivalent: ResCaption = <Static control>.Caption
ResCaption = <Static control>.Value
ResCaption = <Static control> To modify the text displayed in a Static control, the following syntaxes are equivalent: <Name of Static control>.Caption = <New text>
<Name of Static control>.Value = <New text>
<Name of Static control> = <New text>
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|