PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • Branch to expand
  • Selection bar
  • Runtime speed for the TreeView Table controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Expands:
  • a break that was previously collapsed in a Table control. The break elements are visible in the control.
Reminder: At run time, a node is expanded when the node name is preceded by "-".
Versions 18 and later
Windows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
New in version 18
Windows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
Windows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
Versions 20 and later
Windows This function is now available for the Table controls in the WEBDEV sites in Windows.
New in version 20
Windows This function is now available for the Table controls in the WEBDEV sites in Windows.
Windows This function is now available for the Table controls in the WEBDEV sites in Windows.
Example
Syntax

Table control with breaks: Expanding a break Hide the details

<Table control>.Expand([<Row number> [, <Name of break>]])
<Table control>: Control name
Name of Table control to use.
<Row number>: Optional integer
Number of the row whose break will be expanded. This number must corresponds either to the number of the current row, or to the number of the first row of the break to expand. If this parameter is not specified, the break of current row is collapsed.
<Name of break>: Optional character string
Name of break to expand. This parameter must be specified in case of nested breaks. It is used to define the break that will be expanded. By default, no break is expanded if the breaks are nested.
Remarks

Use conditions

<Table>.Expand can be used on:
  • a memory Table control.
  • a browsing Table control loaded in memory.
This function cannot be used on the browsing Table controls (direct access).

Branch to expand

<Table>.Expand has no effect:
TreeView Table controlTable control with breaks
  • if the branch to collapse is not found.
  • if the branch to collapse is a leaf.
  • if the branch to collapse is already collapsed.
  • if the Table control contains no break.
  • if the Table control contains several breaks and if the break to expand is not specified.
  • if no row is selected in the Table control and if <Row number> is not specified.

Remarks for the TreeView Table controls:
  • If <Row number> or <Branch name> corresponds to the branch in the first row, the entire hierarchy of the TreeView Table control is expanded (equivalent to <Table>.ExpandAll).
  • Versions 19 and later
    During the call to <Table>.Expand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
    New in version 19
    During the call to <Table>.Expand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
    During the call to <Table>.Expand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.

Selection bar

<Table>.Expand does not modify the position of the selection bar.

Runtime speed for the TreeView Table controls

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment