Posted 16 April 2014 - 10:41 PM
Hello,
I am encountering an error with window api that crashes the pocket computer. This is the error :
http://pastebin.com/FpMjPiAc
I just know that the error comes from here :
Where is the problem?
Thanks!
I am encountering an error with window api that crashes the pocket computer. This is the error :
window:57:Expected number
And 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.white
after the condition, it works.Where is the problem?
Thanks!