LeafExists method: Tree class

Syntax

LeafExists(RangeFrom, RangeTo)

Description

The LeafExists method enables you to verify if the leaf specified by the parameters exists in the current tree.

Suppose you wanted to check the leaf with the range 81005 to 82000 exists. The following would be valid:

&MyResult = &MyTree.LeafExists("81005", "82000");

This would also be valid, and would check on leaves up to 82000:

&MyResult = &MyTree.LeafExists("", "82000");

If you specify the exact same value for both RangeFrom and RangeTo, the RangeTo parameter is ignored.

Parameters

Parameter Description

RangeFrom

Specify the starting range of the leaf you're verifying. This parameter takes a string value.

RangeTo

Specify the ending range of the leaf you're verifying. This parameter takes a string value.

Returns

An integer: 0 if the leaf exists.