TreeGetCurLevel method (WinStudio scripts)

Applies To

IWSFormComponent interface, tree objects

Definition

Returns an integer corresponding to the level of the currently selected node in a tree component.

Syntax

object.TreeGetCurLevel( )

  Part   Description
object Required. A reference to a valid tree component object.

Remarks

The root level returns 0; a child of the root level returns 1; and so forth.

Example

Dim currentNodeLevel as Integer = 0
currentNodeLevel = ThisForm.Components("tree1").TreeGetCurLevel()
相关主题