world.ArraySize
Returns the number of elements in a specified array
Prototype
long ArraySize(BSTR Name);
Description
This returns the number of elements in the specified array.
VBscript example
Note "items in spells array = " & ArraySize ("spells")
Lua example
Note ("items in spells array = " .. ArraySize ("spells"))
Return value
The number of elements in the specified array, which may be zero.
Related topic
See also
| Function | Description |
|---|---|
| ArrayCount | Returns the number of arrays |
| ArrayExport | Exports values from an array into a single string |
| ArrayExportKeys | Exports keys from an array into a single string |
| ArrayListKeys | Gets the list of all the keys in an array |