ListBox.RowDepth

From Xojo Documentation

Method

ListBox.RowDepth(row as Integer) As Integer

New in 2014r3

Supported for all project types and targets.

For hierarchical ListBoxes, this is the depth of the specified row in the hierarchy. A top-level row has RowDepth = 0.

Example

Get depth of selected row:

Dim row As Integer = ListBox1.ListIndex
Dim depth As Integer = ListBox1.RowDepth(row)