Simple Timer
Hello
I'm a beginner with PLL - test it today the first time - and have a question:
I want to implement a little clock. So I need a Timer to update every second a label-field.
My Form calles Form100$
I tied:
------------------------------------------------------------------------------------
proc timerproc;
....
end;
func WinMain
Global(Form100$);
...
tm$ = SetTimer(Form100$, 40, 1000, timerproc);
// I read in the forum, that 40 is the ID, 1000 is the intervall in ms
...
end;
------------------------------------------------------------------------------------
This doesn't work really, its starts the timerproc one times and then I get
an errormessage. (by the way - I Don't understand any error message)
Hope you can help me with some codelines - thank you
Flixy
|