08-20-2010, 12:16 AM
boriel Wrote:LCD, I have discovered that, removing line
makes the program to run ok. :?: So this could be an easy bug to fix.Code:s$ = ""
Meanwhile, can you check your program removing this line?
I added this line only for testing. It still happen, but after a longer time, even longer if I remove DIM s$ as String.
This is the actual version of Clock Function:
Code:
function Clock(tim as uinteger) as String
dim mins,sec as ubyte
dim secs as uinteger
secs=int(tim/50)
mins=int(secs/60)
sec=secs mod 60
m$=str(mins)
if len(m$)=1 then
m$="0"+m$
end if
s$=str(sec)
if len(s$)=1 then
s$="0"+s$
end if
return m$+":"+s$
return str(int(tim/50))+" "
end function
Sorry it it is not that easy.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!