LuaScriptContext.SetGlobal Method
Sets the top most element of the stack as global. (This is often used for tables)

SetGlobal(
name
as String)
Parameters
- name
- Name of the variable to be set
Remarks
Value is popped off the stack as its set to global.
Dim i as Integer
lua.NewTable()
for i = 1 to 5
lua.Push(i)
lua.Push("Some cell text: " + Str(i * i))
lua.SetTableValue()
next
lua.SetGlobal("foo")
See Also
LuaScriptContext Class