How do I Determine The Number of Elements in an Array in LotusScript

HiHow do I get the the number of elements in a LotusScript array. The elevalent of the @formular @Elements(array).

Thanks in advance.

Subject: How do I Determine The Number of Elements in an Array in LotusScript

Use the ubound(arrayName)-1 to determine the number of elements in an array. The -1 is added since the array starts with a (0).

Subject: Here’s a universal solution for arrays indexed on any bounds:

Ubound(yourArray) - Lbound(yourArray) + 1