# structname_fieldname_get_range(vector)

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

### Prototype

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

### Arguments

handle | A pointer to a structname 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 structname.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. Handle is returned by `classname_structname_read_handle()`.

### Return Codes

See `classname_fieldname_get_range`

Related Topics