CArray:Exists CArray:Init

CArray:Get


The Get method returns the value of the CArray member at a specified index.

Syntax

value = CArray:Get( n )

    n is the index of the member to retrieve.

    value is the value of the member and may be a number, string, or other Lua value..

    On success, the value is returned.

    On failure, nil is returned.

Remarks

The returned value is whatever type was stored in the array at the specified index. If the index is out of range this method returns nil.

Related Topics

CArray, Set