Navigation:  thinBasic Modules > Dictionary >

Dictionary_Add

Previous pageReturn to chapter overviewNext page

 

Description

 

Add or change a key data 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

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com