GetElementLevel method

Delphi example

C++Builder example

 

Builder Syntax

Cardinal GetElementLevel ();

Delphi Syntax

function GetElementLevel: Cardinal;

Overview

Refer to Working with Data Sets.

Remarks

Returns a value that indicates the level at which the element specified in the CurrentElement property is located, within the Data Set.

This method requires that the Data Set is evaluated as a tree.

The following illustration gives an example:

image\GetLevel.gif

If the CurrentElement property contains:

The method returns

Item 1

0

Item 2

1

Item 3

2