# classname_fieldname_get_range(vector)

This function returns a reference to an array of vector elements.

### Prototype

>         MCO_RET	classname_fieldname_get_range(	/*IN*/ classname *handle,
>                                 /*IN*/ uint2 index,
>                                 /*IN*/ uint2 num,
>                                 /*OUT*/ <type> *result);

### Arguments

handle | A pointer to a classname handle
index | A `uint2` that specifies the offset from the start of the vector that is the start of the range
num | The number of elements, starting from index, to get
result | A pointer to a variable of type`type`, where type is the classname.fieldname type referenced by handle

### Description

This function returns a reference to an array of vector elements. This method is only generated for vectors of numbers. Like ‘C’ arrays, vectors are counted from zero.

### Return Codes

MCO_S_OK | The range of vector elements was returned successfully
MCO_E_TRANSACT |
MCO_ERR_OBJECT_HANDLE |
MCO_ERR_COMMON |

Related Topics