Creator Help

Add

Table of ContentsDown

List Manipulations - Add

The Add list Deluge statement appends the specified element to the end of this list. The type of elements that can be added, depends on the list type.

Syntax

<list>.add(<value>);

where,

<list> refers to the list name.
<value> refers to the element to be appended to this list.

Example

In the following sample code, the list values Hockey, Cricket and Football is added to the sports list.

actions
{
on add
{
submit
{
on validate
{
sports = List:String();
sports.add("Hockey");
sports.add("Cricket");
sports.add("Football");
}
}
}
}

Top