<cDictionary>.Add

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Obsolete > Dictionary > cDictionary Class > cDictionary Methods >

<cDictionary>.Add

 

Description

 

Add or change a key/data pair into a dictionary.

 

Syntax

 

pData = <cDictionary>.Add(KeyName, DataToStore)

 

Returns

 

Number: pointer to the first byte of the data stored into the dictionary.

 

Parameters

 

Name

Type

Optional

Meaning

KeyName

String

No

Name of the key

DataToStore

String

No

Data to store

 

Remarks

 

If KeyName does not exists into dictionary a new element will be created and its data stored.

If KeyName already exists into dictionary current data will be replaced with the new one.

 

Restrictions

 

See also

 

This functionality has been made obsolete by newer, better optimized hash table available directly in core instead.

 

Examples