LuaScriptContext.GetGlobalTable Method
Gets a global table variable by name and puts it at top of the stack.

GetGlobalTable(
name
as String)
as Boolean
Parameters
- name
- Name of the table to get
Returns
- Boolean
- True if fetching the table was successful, else false.
Remarks
if ls.GetGlobalTable("background") then
ls.PushNil()
while ls.GetNext(1) <> 0
data = ""
if lua.IsString(-2) then
data = lua.GetString(-2,false) + ": "
end if
if lua.IsNumber(-1) then
data = data + Format(lua.GetDouble(-1,false),"#,##")
end if
MsgBox data
ls.Pop()
wend
ls.Pop()
end if
See Also
LuaScriptContext Class