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

<cDictionary>.Add

Previous pageReturn to chapter overviewNext page

 

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

 

Examples