AVLTree.Item Method (console safe)
Sets or gets a value of a item in the tree by key.

Item(
key
as Variant)
as Object

Item(
key
as Variant
assigns value
as Object)
Parameters
- key
- The key for the item. The data-type for this key must match the selected comparer. If you have a comparer that can compare more than one data-type and evaluate which one is bigger then multiple key types may be used in the same tree.
- value (assignment parameter)
- The value to set for the given key when using the setter.
Returns
- Object
- Returns the object that was when using the getter. If the given key was not found then nil is returned.
Remarks
If the given key does not exist when setting a value of a item then the item will be added to the Tree.
See Also
AVLTree Class