WEB开发网
开发学院软件开发Delphi 怎样让程序延时 阅读

怎样让程序延时

 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;

Tags:怎样 程序 延时

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接