|
|
||
|
On Tuesday 09, Anselmo Junior wrote:
> Oh yeah, and I recently try to do that and work. Only need get what key inMethod objLen in the LuaState class:
> the script is in use to get the values.
public int objLen(int idx)
Looks like you have to use the Lua stack idx of the table.
For strings it will return the string length, for tables it will return the
results of the length operator '#'...
See more here:
http://www.lua.org/manual/5.1/manual.html#lua_objlen
--
Robert G. Jakabosky