KILL THAT TIMER !!!!!!

new topic     » topic index » view thread      » older message » newer message

Hy,

Anyone noticed that in Dos32Lib the killTimer procedure doesn't work ?

The org. proc. is :

global procedure killTimer( integer id, integer timerId )
    sequence timer
    for i = 1 to length( timers ) do
        timer = timers[i]
        if timers[TimerWin] = id
        and timers[TimerId] = timerId then
            timers = timers[1..i-1] & timers[i+1..length(timers)]
            return
        end if
    end for
end procedure


But it should be :

global procedure killTimer( integer id, integer timerId )
    sequence timer
    for i = 1 to length( timers ) do
        timer = timers[i]
        if timer[TimerWin] = id
        and timer[TimerId] = timerId then
            timers = timers[1..i-1] & timers[i+1..length(timers)]
            return
        end if
    end for
end procedure


David Cuny forgot to remove the "s" at the "if" statement.
Nothing special....

Bye,
PQ
QC


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu