Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > DataStructures > Tree AVL >

Tree_Set

Previous pageReturn to chapter overviewNext page

 

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