I am encountering an error with window api that crashes the pocket computer. This is the error :
window:57:Expected numberAnd here is the full code of the program (yes, it is the Improved ToDo list) :
http://pastebin.com/FpMjPiAc
I just know that the error comes from here :
if fs.exists("/.todocfg") then
opfile = fs.open("/.todocfg", "r")
local color1 = tonumber(opfile.readLine())
local color2 = tonumber(opfile.readLine())
opfile.close()
else
local color1 = colors.lime
local color2 = colors.white
end
If I add :local color1 = colors.lime local color2 = colors.whiteafter the condition, it works.
Where is the problem?
Thanks!











