PutElementIn<n>D<Type-Name>Array

Array Types and Functions

Stores an element in an array of the appropriate type.

void PutElementIn<n>D<Type-Name>Array( <Type-Name>Array array, int index1,...int indexn, <Actual Type-Name> Value );
ArrayAn array of the specified type.
index1,... indexnThe indices of the element to be stored.
ValueThe value to be stored, in the native type of the language.

The PutElementIn<n>D<Type-Name>Array family of functions store a value of a given type in an array of the lrc type given in Type-Name.

Return Values

lrc Return Values

Parameterization

Parameterization is not applicable to this function.

Example

This example stores two elements in a 3 dimensional byte array

        ShortArray Var;
        Var = Create3DShortArray(0, 2, 0, 3, 0, 4);
        PutElementIn3DShortArray(Var, 0, 0, 0, lrc_short("0"));
        PutElementIn3DShortArray(Var, 0, 0, 1, lrc_short("1"));