This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
LISTBOX SET HIERARCHY
|
LISTBOX SET HIERARCHY ( {* ;} object ; hierarchical {; hierarchy} ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, object is an object name (string) If omitted, object is a variable | |||||
object | Form object |
![]() |
Object name (if * is specified) or Variable (if * is omitted) | |||||
hierarchical | Boolean |
![]() |
True = hierarchical list box False = non-hierarchical list box | |||||
hierarchy | Pointer array |
![]() |
Array of pointers | |||||
The LISTBOX SET HIERARCHY command lets you configure the list box object designated by the object and * parameters in hierarchical or non-hierarchical mode.
Note: This command only functions with list boxes based on arrays. When this command is used with a list box based on selections, it does nothing.
If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you pass a variable reference instead of a string.
The Boolean hierarchical parameter lets you specify the list box mode:
When you pass a list box in hierarchical mode, certain properties are automatically restricted. For more information, please refer to the Managing Hierarchical List Boxes section.
The hierarchy parameter is used to designate the arrays of the list box to be used to construct the hierarchy (see example). If you display the list box in hierarchical mode and omit this parameter:
Definition of the aCountry, aRegion and aCity arrays as the hierarchy of a list box:
ARRAY POINTER($ArrHierarch;3)
$ArrHierarch{1}:=->aCountry `First break level
$ArrHierarch{2}:=->aRegion `Second break level
$ArrHierarch{3}:=->aCity `Third break level
LISTBOX SET HIERARCHY(*;"mylistbox";True;$ArrHierarch)
Product: 4D
Theme: List Box
Number:
1098
Created: 4D v12
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)