# structname_fieldname_at(vector)

> This function returns a reference to the element of a vector at a specified position.

### Prototype

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

### Arguments

handle | A pointer to a structname handle
index | A `uint2` that specifies the offset from the start of the vector from which to get the value
result | A `<type>` pointer to receive the value of the element of the vector at a specified index

### Description

> This function returns a reference to the element of a vector at a specified position. This method is used for vector elements that are NOT char or string elements. See `structname_fieldname_at (2)` for char and string vector elements. Handle is returned by `classname_structname_read_handle()`.

### Return Codes

> See `classname_fieldname_at (vector)`.

> Related Topics