lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 07.11.2014 08:43, Zulfihar Avuliya wrote:
> Hello Team,
> 
> I am new to lua and I have question regarding how to call a lua script
>  from another lua script:
> 
> Example : 

> .....
> *_File 2 : Fileopen.lua_*
> 
> table3 = {
> Value1 = 1
> Value2 = 5 
> Value3 = 4
> Value4 = 3
> }

return table3

> 
> I want to read the values of table 3 from File 1: Master.lua, like this :

table3=require("Fileopen")

> print(table3["Value1"])
> Can you help me how to solve if this possible !

Add those 2 lines to your files.

Regards,
miko