怎样让程序延时
2006-02-04 13:26:29 来源:WEB开发网核心提示:Q:怎样让程序延时A:PRocedure Delay(msecs:integer);varFirstTickCount:longint;beginFirstTickCount:=GetTickCount;repeatapplication.ProcessMessages;until ((GetTickCount-Fir
Q:怎样让程序延时
A:
PRocedure Delay(msecs:integer);
var
FirstTickCount:longint;
begin
FirstTickCount:=GetTickCount;
repeat
application.ProcessMessages;
until ((GetTickCount-FirstTickCount) >= Longint(msecs));
end;
更多精彩
赞助商链接