Timer is simply handled, you will find it good.

xiaoxiao2021-03-06  41

Define a global. Boolean type variable

Add to the ONTIMER event

VAR

Timerflag: boolean = true;

....................................

ONTIMER event processing

-------------------------------------------------

IF Timerflag Then

Begin

Timerflag: = FALSE;

{Just do something.

Timerflag: = true;

END;

-------------------------------------------------

This can solve some processing using Timer, but because the Message caused by the longer process process is constantly pressing the stack. . Causes stack overflow. .

转载请注明原文地址:https://www.9cbs.com/read-55897.html

New Post(0)