When I try to call a method of another class from another class, it says an error that
Attempt to call field 'LoadShift' (a nil value)
Here is my code, loginpage1.lua
local LoadShift = nil;
.
.
function LoadShift()
end
loginpage2.lua
local loginObj = require("com.classess.loginpage1")
loginObj.LoadShift();
What is the problem with my code, please help me solve this problem.
source
share