Text

Description

The text of the specified control.

Applies to

Button, GroupBox, and Text controls

Syntax

PowerBuilder dot notation:

dw_control.Object.textname.Text

Describe and Modify argument:

"textname.Text { = ' string ' }"

Parameter

Description

textname

The name of a control in the DataWindow.

string

(exp) A string specifying the text for textname. To specify an accelerator key in the text, include an ampersand before the desired letter. The letter will display underlined. String is quoted and can be a DataWindow expression.

Usage


In the painter

Select the control and set the value in the Properties view, General tab, Text option.

Examples

Example 1

setting = dw1.Object.text_1.Text

dw1.Object.text_1.Text = "Employee &Name"

Example 2

setting = dw1.Describe("text_1.Text")

dw1.Modify("text_1.Text='Employee &Name'")