Posted 23 March 2013 - 08:39 PM
How can i access tables from other programs, by checking for all the program that has the table called fileList then
use those tables?
And I know I already ask this question but i still don't understand how it completely works. :/
its about the table.sort() function and using a comparison function
like sorting the sub tables by comparing their sub tables (sub tableception) that are either number or string
for example i want to arrange a table by putting first the active status, then arrange all of those sub table with
active status starting from the highest priority to lowest. second the inactive status, then start again from the highest prority to lowest.
the table
can anyone explain this for me? please :)/>
use those tables?
And I know I already ask this question but i still don't understand how it completely works. :/
its about the table.sort() function and using a comparison function
like sorting the sub tables by comparing their sub tables (sub tableception) that are either number or string
for example i want to arrange a table by putting first the active status, then arrange all of those sub table with
active status starting from the highest priority to lowest. second the inactive status, then start again from the highest prority to lowest.
the table
local fileList = {
{name = "file_01", status = "inactive", priority = 1},
{name = "file_02", status = "active", priority = 1}
{name = "file_03", status = "active", priority = 2},
{name = "file_04", status = "active", priority = 0}
{name = "file_05", status = "inactive", priority = 0}
}
can anyone explain this for me? please :)/>