classname_fieldname_put_range(vector)

This function writes num elements from src to the vector fieldname in the object referenced by handle. Put_range methods are only generated for fixed size objects (which excludes strings).

Prototype

    MCO_RET classname_fieldname_put_range( /*IN*/ classname *handle,
                               /*IN*/ uint2 start_index,
                               /*IN*/ uint2 num,
                               /*IN*/ const <type> *src );

Arguments

handle
A pointer to a classname handle.
start_index
A uint2 that specifies the starting index of the vector at which to start putting values from src.
num
A uint2 that specifies the number of vector elements to be written from src to the object.
src
A pointer of type <type> to the first of num elements to be written to the object.

Description

This function writes num elements from src to the vector fieldname in the object referenced by handle. Put_range methods are only generated for fixed size objects (which excludes strings).

Return Codes

MCO_S_OK
The vector elements were written successfully.
MCO_E_INDEXLIMIT
Vector index is out of range.
MCO_E_TRANSACT
MCO_E_DELETED
MCO_E_NOMEM
MCO_E_UNSUPPORTED
MCO_ERR_OBJECT_HANDLE
MCO_ERR_TRN_LONG
MCO_ERR_TRN
MCO_ERR_COMMON
Related Topics Link IconRelated Topics