Navigation:  Classes > bNameArray >

bNameArray:Add()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Adds a new value to the array.

Class

bNameArray

Type

Method

Syntax

<oNameArray>:Add(

<symName>,

<uValue>

) Æ lSuccess

Arguments

<symName>The name of the value. With the name can be accessed to the value.
Data Type:Symbol

 

<uValue>The value that is to be added the array.
Data Type:Usual

Return Value

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

Description

bNameArray:Add() adds a new value to the end of the array.

 

The method examines whether a value with the specified name already exists in the array. If it is so, the method returns with the value FALSE.

 

With the method bNameArray:Exist() it can be examined whether in the array exist a value to a name.

See Also

bNameArray:Count

bNameArray:Delete()

bNameArray:Exist()

bNameArray:Get()

bNameArray:Put()

 


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