CArray:Get


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

Syntax

value = CArray:Get( n )

where

    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 failure, nil is returned.

  

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

Related Topics

Set

CArray class