LuaScript Xojo Plugin |

# LuaScriptContext.GetObject Method

Fetches a Xojo or Real Studio object value from the stack

GetObject(
index as Integer,
popStack as Boolean) as Object

#### Parameters

index
  The index of the element in the stack to check for. -1 is the element at top of the stack, the last element pushed onto the stack.The index of the element in the stack to fetch from. -1 is the element at top of the stack, the last element pushed onto the stack.
popStack
  True if you want the value to be popped off the stack, false if you want it to remain there.

#### Returns

Object
  The requested value as REALbasic object

#### Remarks

#### See Also

LuaScriptContext Class