count Method

Class: List

Description

This method provides the number of elements in a list.

Syntax

ListObject.count(String delimiter)

Parameters

delimiter

A character that is used to delimit the values in the list.

Returns

A Number.

When Became Available

Profile v7.0

Example

// Define List objects with some elements

type List list3 = Class.new("List", "AAP:NOOT:MIES")

 

write list3.count(":") // writes "3"

write list3.count("?") // writes "1"