# classname_fieldname_at_len(vector)

This function returns the size of a char or string element of a vector.

### Prototype

>         MCO_RET	classname_fieldname_at_len(	/*IN*/ classname *handle,
>                                 /*IN*/ uint2 index,
>                                 /*OUT*/ uint2 *len );

### Arguments

handle | A pointer to a classname handle
index | A `uint2` that specifies the offset from the start of the vector of the element to return the length of
len | A pointer to a `uint2` that receives the size of the element

### Description

This function returns the size of a char or string element of a vector. Like ‘C’ arrays, vectors are counted from zero.

### Return Codes

MCO_S_OK | The vector element size was returned successfully
MCO_E_INDEXLIMIT | Index is out of range
MCO_E_TRANSACT |
MCO_ERR_OBJECT_HANDLE |

Related Topics