Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > DataStructures > Hash Table >

Hash_Set

Previous pageReturn to chapter overviewNext page

 

Description

 

Add a key/data pair to an Hash Table container

 

Syntax

 

Hash_Set(pHash, sKey, sData)

 

Returns

 

Nothing

 

Parameters

 

Name

Type

Optional

Meaning

pHash

Number

No

Handle of a Hash Table returned by Hash_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