Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do a "wait" in X++ ?

5,720 views
Skip to first unread message

fred

unread,
Apr 20, 2007, 8:56:03 AM4/20/07
to
Hello all,

I'd like to do a "wait" in X++ code,
i.e. have the code waiting for some seconds before doing something else.
These kind of instruction exist in other languages, but not in X++.

Any idea ?

Best regards,
Fred

Justin Biggs

unread,
Apr 20, 2007, 9:44:00 AM4/20/07
to
Hi fred,

The statement: "sleep(int milliseconds);" will pause execution for the
specified number of milliseconds.

sleep(1000); // waits for 1 second before continuing
--
Best Regards,
Justin

Justin Biggs

unread,
Apr 20, 2007, 9:46:05 AM4/20/07
to
Also, for further info on a lot of the built in functions, take a look here:

http://msdn2.microsoft.com/en-us/library/aa856741.aspx

--
Best Regards,
Justin

fred

unread,
Apr 20, 2007, 11:02:02 AM4/20/07
to
Hi Justin,

many thanks,
your help was greatly appreciated !

Kind Regards,
Fred

0 new messages