Navigation:  Classes > bItemList >

bItemList:Add()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Adds a new item to the list.

Class

bItemList

Type

Method

Syntax

<oItemList>:Add(

<oItem>,

[<iPosition>]

) Æ lSuccess

Arguments

<oItem>The item that is to be added the list.
Data Type:Object

 

<iPosition>The position at which the item is to be inserted in the list. The value 0 is used as default. This indicates that the item is added at the end of the list.
Data Type:Integer

Return Value

lSuccessA logical value that indicates whether the item was added to the list.
TRUEThe item was added.
FALSEThe item could not be added.
Data Type:Logic

Description

bItemList:Add() adds a new item to the end of the list.

 

The method does not examine whether the item already exists in the list. If it is to be avoided that an item is added to the list several times, must be examined this before by the method bItemList:Exist().

See Also

bItemList:Delete()

bItemList:Exist()

bItemList:Get()

bItemList:Put()

 


Page url: http://www.YOURSERVER.com/index.html?bitemlist_add.htm