Navigation:  thinBasic Modules > LL (Linked lists) >

LL_UpdateByName

Previous pageReturn to chapter overviewNext page

 

Description

 

Update data inside a linked list item giving item key name.

 

Syntax

 

pItem = LL_Update(llRoot, ItemName, ItemData)

 

Returns

 

Number.

A pointer to the linked list item just updated

 

Parameters

 

Name

Type

Optional

Meaning

llRoot

Number

No

If llRoot is = 0 (zero) a new linked list will be created and the new item added.

If llRoot is <> 0, a new item will be added to the linked list pointed by llRoot

ItemName

String

No

Name of the item. This is the key to be used to change, data in future reference

ItemData

String

No

Any string to be associated with ItemName

 

Remarks

 

Important: if ItemName is not present in the list, it will be added.

 

Restrictions

 

See also

 

Examples

 

 

 

 

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