Value::GetElement

Value::GetElement
SF_INLINE bool GetElement(unsigned idx, Value* pval) const;
Description

GetElement retrieves a specific element from the array by array index. Only valid for Array types. If a managed value such as an Object is returned, then the Value holding the reference MUST be destroyed before the runtime dies since the Object’s memory will be invalid due to heap deallocation.

Parameters
Parameters 
Description 
unsigned idx 
The index of the element to retrieve. 
Value* pval 
The holder for the retrieved value. 
Return Value

True if the element was retrieved, otherwise false.