Thanks for answering.With this portion of code i can't say you where you're wrong. What setNewREfresh does? (Also the ; is not used in lua for the sequence command).
P.s. Java and C both have whiles or they couldn't be called Touring complete languages like they are.
This is setNewRefresh()
Code:
function setNewRefresh()
Screen.refresh()
Screen.clear(BOTTOM_SCREEN)
oldH, oldMin , oldSeg = System.getTime()
time= oldH.. ':' .. oldMin .. ':' .. oldSeg
Screen.debugPrint(0,0, time, Color.new(55,255,0), BOTTOM_SCREEN)
Screen.flip()
end
Sorry if I mistake.
Thanks.