VECTOR_SET

Syntax

VECTOR_SET ( vector_handle, location, new_value );
Input arguments:
handle vector_handle Vector.
int location Location of the value to be replaced.
untyped new_value

New value which replaces the old value in the given location. Type can be int, float, string or handle.

Note: When replacing handle type values with new values, make sure to free or delete the old values correctly.

Return Values

Success:
int 0
Failure:
int -1

Description

This function sets a new value to the given location in the given vector.