Share this page

# 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 );

Array | An array of the specified type.
index1,... indexn | The indices of the element to be stored.
Value | The 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.

Copy code

    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"));

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: