Tree_Set

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data Structures > AVL Tree >

Tree_Set

 

Description

 

Add a key/data pair to an AVL Tree

 

Syntax

 

Tree_Set(pTree, sKey, sData)

 

Returns

 

Nothing

 

Parameters

 

Name

Type

Optional

Meaning

pTree

Number

No

Handle of an AVL Tree returned by Tree_New

sKey

String

No

Unique key

sData

String

No

Data to be associated to sKey.
It can be anything that can be allocated into a standard dynamic string

 

Remarks

 

Value is replaced if Key already exists

 

Restrictions

 

sKey is case sensitive.

sKey cannot contains nulls

 

See also

 

Examples