Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-15-05, 08:07 AM   #1
Garoun
A Fallenroot Satyr
 
Garoun's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 25
Table/Array Variable appending

Been looking around the lua manuals and can't seem to find the answer to this question, more then likely I'm just blind and can't see it. Basically I was curious if/how you append more data to an already defined array/table with values present.

Code:
Some_Variable = {
[1] = {abcd},
[4] = {efgh}
};

--[[ Appending data ]]
Data_To_Append = {
[6] = {ijkl},
[3] = {mnop}
};
At the most basic level I'd like to take Data_To_Append and add it to the end of Some_Variable.

P.S. In lua are the variables of this nature considered 'Arrays' or 'Tables'?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Table/Array Variable appending


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off