array_size()

Returns array data size.

Syntax

array_size(hnd);

Parameters

hnd Array handle.
Return Value Array size. Returned value is integer number.

Example

hnd = array_new();
result = array_size(hnd);
array_setstring(hnd, "PlanetCNC");
result = array_size(hnd);
array_delete(hnd);

result:

0
9

hnd = array_new();
result = array_size(hnd);
array_resize(hnd, 10);
result = array_size(hnd);
array_delete(hnd);

result:

0
10

See also

array_new, array_delete, array_resize