@Elements in Lotus Script

How to get the number of values in the field using LotusScript? Is there an equivalent of @Elements function in Script?

Subject: @Elements in Lotus Script

dim tmp as varianttmp = doc.YourMultivaluefield

If isArray(tmp) then —> Ubound(tmp) +1, gives you the same result as @Elements.