Actually there is ... and surprisingly it is:

      Sleep(int millisec);

Or it was at least present in 2.0, 2.1 and 2.5 thou I have not tested it
in 3.0.


Best Regards

Carsten Frandsen



-----Original Message-----
From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: 10. august 2004 09:55
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: pause(seconds)

Thanks for your reply!

It works, but I thought there would be some build in commando for
that. Something like: sleep(int milliseconds)....

But for now I think I can live with you solution:
{
int startTime, endTime;
int pauseTime;
;

startTime = WinApi::getTickCount();

pauseTime = winapi::gettickcount();
while (winapi::gettickcount()-pauseTime < 10000)
{
  //I am gonna wait unti the midnight hour...
}

endTime = WinApi::getTickCount();

print "Wait time: ", time2StrHMS(endTime - startTime);
pause;
}






Yahoo! Groups Links








Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to