DeleteByRange method: Leaf class
Syntax
DeleteByRange(RangeFrom, RangeTo)
Description
The DeleteByRange method deletes the specified leaf object from the database. The leaf specified by the parameters does not have to match the leaf executing the method. That is, if &MYLEAF is associated with a range 8200-8300, you can specify a different range with the DeleteByRange method. For example:
&MYLEAF = &MYTREE.FindLeaf("8200", "8300");
/* some processing */
&RET_VALUE = &MYLEAF.DeleteByRange("8400", "8500");
Parameters
| Parameter | Description |
|---|---|
|
RangeFrom |
Specify the starting range of the leaf to be deleted. This parameter takes a string value. |
|
RangeTo |
Specify the ending range of the leaf to be deleted. This parameter takes a string value. |
Returns
A number; 0 if the delete is successful.
Example
&RET_VALUE= &MYLEAF.DeleteByRange("8400", "8500");