Navigation:  ThinBASIC Modules > Dictionary >

Dictionary_Add

Previous pageReturn to chapter overviewNext page

 

Description

 

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

 

Syntax

 

pData = Dictionary_Add(pDictionary, KeyName, DataToStore)

 

Returns

 

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

 

Parameters

 

Name

Type

Optional

Meaning

pDictionary

Numeric

No

Pointer to a dictionary.

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