Re: Dynamic table creation
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Dynamic table creation
- From: "Paul Hudson" <phudson@...>
- Date: Mon, 8 Jan 2007 17:08:58 -0000
(from memory)
_G['Tablename'] = {}
P.
----- Original Message -----
From: "Jimmie Houchin" <jhouchin@cableone.net>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Monday, January 08, 2007 5:12 PM
Subject: Dynamic table creation
Hello,
I am parsing XML data using LuaExpat.
I am wanting to traverse the lxp.lom.parse() tables and recreate the
objects using the string from the tag as the name of the new table.
So basically how do I do something like:
'TableName' = {}
and be valid Lua?
I guess basically it this, how can I make a string become the name of
the variable?
If this is an FAQ my apologies. I did not find it in my search.
Any help greatly appreciated.
Jimmie