Development tools : Global functions : List and Table category : tableSize
  
tableSize
Description
Returns the number of the elements in the given 'IColl' List.
Usage
Client side: N
Server side: Y
Syntax
Integer tableSize(IndexedCollection iColl)
Argument
iColl
The table to be calculated. The argument requires IndexedCollection type data.
Return
Returns the number of the elements in the given 'iColl' List in integer. If 'iColl' is null, 0 will be returned.
Example
The example returns number of elements in the "accountList" indexed collection. In the example, "accountList" contains two elements: accountA in index 0 and accountB in index 1, as shown in the following iColl structure definition:
<iColl>accountList
<kColl>acountA
<field>accountId: '1001'
<field>accountAmount: 1000.25
<kColl>accountB
<field>accountId: '1002'
<field>accountAmount: 10000.45
tableSize(accountList) returns 2 which is the number of elements in "accountList"
See also
List and Table category