countElements

Function: countElements()

Returns the number of elements in an Array or Recordset.

Syntax

countElements(list)

ArgumentTypeDescription
listArray or RecordsetThe object to be counted.

Examples

countElements(lookupPipe)

Returns the number of rows in the Pipe referenced by lookupPipe.

$userArray = split(in.users,","), $numUsers = countElements($userArray)

in.users is a list of user names separated by commas. The split() function converts this into an Array and countElements() returns the number of users.

See Also