Tao.Lua SDK Documentation

Lua.lua_setfield Method 

Does the equivalent to t[k] = v, where t is the value at the given valid index index and v is the value at the top of the stack,

[Visual Basic]
Public Shared Sub lua_setfield( _
   ByVal L As IntPtr, _
   ByVal idx As Integer, _
   ByVal k As String _
)
[C#]
public static void lua_setfield(
   IntPtr L,
   int idx,
   string k
);

Parameters

L
idx
k

Remarks

This function pops the value from the stack. As in Lua, this function may trigger a metamethod for the "newindex" event

See Also

Lua Class | Tao.Lua Namespace