RTreeView.RowIndex


public property RowIndex

Prototype:

Read/Write property RowIndex[=path]

Description:

Returns the index or the path of the current selected item. If the Model property is set to MODEL_LISTVIEW then this property is a number representing the index of the current selected item, else if the Model property is set to MODEL_TREEVIEW is a string representing the path to the current item, in indexes separated by ":". For example, the fifth child, of the second child of the third item will have the path "2:1:4". Remember that the index starts with 0 for the first item. You can call (when reading the property) the arr=StrNumberSplit(path,":") function for obtaining the indexes in an array (in this case [2,1,4]).

Return value:

Returns the row path as a string for tree views or the row index as a number for list views.