PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
HierarchicalDepth (Property)
In french: ProfondeurHiérarchique
The Property HierarchicalDepth allows you to:
  • Find out the depth of a hierarchical control found in a report.
  • Modify the depth of a hierarchical control found in a report (only if the report uses a data source by programming).
This property can only be used in the events of a "Report on TreeView Table".
Example
// -- Pre-print process of Body block
IF RUB_Col_Client.Depth Hierarchical Depth = 1 THEN
RUB_Col_Client.ColorBackground = iLightGreen
ELSE
RUB_Col_Client.ColorBackground = iWhite
END
Syntax

Finding out the level of depth for a hierarchical control Hide the details

<Result> = <Control used>.HierarchicalDepth
<Result>: Integer
Depth of the hierarchical control: 0 for the root, 1 for the first level, ...
<Control used>: Control name
Name of the hierarchical control to use.

Modifying the level of depth for a hierarchical control Hide the details

<Control used>.HierarchicalDepth = <New depth>
<Control used>: Control name
Name of the hierarchical control to use. This report must use a data source by programming.
<New depth>: Integer
New depth for the hierarchical control: 0 for the root, 1 for the first level, ...
Remarks
Property HierarchicalDepth applies only to reports of type "Report on hierarchical table"..
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment