Creator Help

Clear

Table of ContentsDown

List Manipulations - Clear

The Clear Deluge list syntax, clears all the elements from the specified list and makes it empty.

Syntax

<list>.clear();

where,

<list> - the name of the list to be cleared.

Example

In the following sample code, all the elements in sports_list will be cleared.

sports_List.clear();

Top