Posted 24 August 2013 - 03:54 AM
I want to access the function myFunc and the local myVar from api2. The main program load the api1 and the api1 load the api2.
Thanks to anyone who help me.
myProgram
----
os.loadAPI("api1")
-- I want to use the function myFunc from api2
--[[???]]
-- I want to print the local myVar from api2
print(--[[???]])
api1
-----
os.loadAPI("api2")
api2
-----
local myVar = "This is myVar"
function myFunc()
print("This is myFunc")
end
Thanks to anyone who help me.