How to Emulate Sleep Mode in FoxPro for Unix

Last reviewed: November 21, 1995
Article ID: Q135455
The information in this article applies to:
  • Microsoft FoxPro for Unix, version 2.6

SUMMARY

There may be situations where it is necessary to put FoxPro for Unix in a sleep mode to suspend processing for a short time. FoxPro for Unix does not have a SLEEP command, however you can emulate sleep mode.

MORE INFORMATION

For example, when running an application that is performing serial I/O through the comm port, you may need to temporarily pause FoxPro to allow the I/O operation sufficient time to complete.

By using the Wait Window command in conjunction with the TIMEOUT clause, you can simulate the SLEEP command. For example, to suspend FoxPro for 2/10ths of a second, use this command:

   Wait Window "" Timeout .2


Additional reference words: FoxUnix 2.60 suspend
KBCategory: kbprint
KBSubcategory: FxprintGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.