DefaultExpandToLevel

Description

The default level of expansion for the TreeView DataWindow. For example, if the default level is 2, only data with a level less than or equal to 2 is expanded by default.

Applies to

TreeView DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Tree.DefaultExpandToLevel

Describe and Modify argument:

"DataWindow.Tree.DefaultExpandToLevel { = value }”

Parameter

Description

value

A long value that is the default level of expansion for the TreeView DataWindow. The value must represent a valid level.

Usage


In the painter

Select a value from the Expand To Level By Default drop-down list on the General page in the Properties view. The list displays the levels that have been created for the DataWindow.

Examples

Example 1

The following code sets and gets the long value that determines how many levels of the TreeView are expanded by default:

long ll_expandlevel

dw_1.Object.datawindow.tree.DefaultExpandToLevel = 1
ll_expandlevel = &
   dw_1.Object.DataWindow.Tree.DefaultExpandToLevel