Edit.property DataWindow object property
Description
Settings that affect the appearance and behavior of columns
whose edit style is Edit.
Controls
Column controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>columnname</span>.Edit.<span>property</span> |
Describe and Modify argument:
1 |
"<span>columnname</span>.Edit.<span>property </span>{ = <span>value </span>}" |
DataWindowSyntaxFromSql:
1 |
Column ( Edit.<span>property </span>= <span>value</span> ) |
Parameter |
Description |
---|---|
columnname |
The column with the Edit edit style for |
property |
A property for the column’s |
value |
The value to be assigned to the property. |
Property for Edit |
Value |
---|---|
AutoHScroll |
Whether the edit control scrolls horizontally Values are:
You can use AutoHScroll with DataWindowSyntaxFromSql. Painter: Auto Horizontal Scroll option. |
AutoSelect |
Whether to select the contents of the Values are:
You can use AutoSelect with DataWindowSyntaxFromSql. Painter: Auto Selection option. |
AutoVScroll |
Whether the edit box scrolls vertically Values are:
You can use AutoVScroll with DataWindowSyntaxFromSql. Painter: Auto Vertical Scroll option. |
Case |
The case of the text in the edit control. Values are:
Painter: Case option. |
CodeTable |
Whether the column has a code table. Values are:
Painter: Use Code Table option. |
DisplayOnly |
Whether the column is display only. Values are:
Painter: Display Only option. For conditional control over column editing, use the Protect |
FocusRectangle |
Whether a dotted rectangle (the focus Values are:
You can use FocusRectangle with DataWindowSyntaxFromSql. The setting Painter: Show Focus Rectangle option. |
Format |
(exp) A string containing Painter: Format option (do not use quotes around the value). |
HScrollBar |
Whether a horizontal scroll bar displays Values are:
Painter: Horizontal Scroll Bar option. |
Limit |
A number specifying the maximum number Painter: Limit option. |
Name |
A string whose value is the name of the Painter: Style Name option. |
NilIsNull |
Whether to set the value of the edit Values are:
Painter: Empty String is Null option. |
Password |
Whether to assign secure display mode Values are:
If you change the Password property, you should also change Painter: Password option. |
Required |
Whether the column is required. Values are:
Painter: Required option. |
Style |
(Describe only) Painter: Style Type option. |
UseEllipsis |
Whether an ellipsis (three dots) displays The ellipsis does not display when the column has focus. Values are:
The property is ignored if you:
Painter: Use Ellipsis check box on the Format page. |
ValidateCode |
Whether the code table will be used to Values are:
Painter: Validate option, available when Use Code Table is |
VScrollBar |
Whether a vertical scroll bar displays Values are:
Painter: Vertical Scroll Bar option. |
Usage
In the painter
Select the control and set values in the Properties view,
Edit tab, when Style Type is Edit.
Examples
1 |
string setting |
1 |
setting = dw1.Object.emp_name.Edit.AutoHScroll |
1 |
dw1.Object.emp_name.Edit.Required = "no" |
1 |
setting = dw1.Describe("emp_name.Edit.AutoHScroll") |
1 |
dw1.Modify("emp_name.Edit.Required=no")<br> |
1 |
dw1.Object.col1.Edit.UseEllipsis = Yes<br>dw1.Modify("col1.Edit.UseEllipsis=Yes") |