hi
i don’t know how do this function with my variable cnt.ProgressView…i have a syntax problem. corona ask to me a “(”…
what’s the good syntax ?
local cnt={} cnt.ProgressView=4 local function test(cnt.ProgressView,k) print(cnt.ProgressView-k) end
test(cnt.progressView,1) --error
this works, but there is no way to put cnt.ProgressView directly in my declaration function ? :
local cnt={} cnt.ProgressView=4 local function test(t-k) print(t-k) end
test(cnt.ProgressView,1) --result : 3