PRB: READ..DEACTIVATE Clause Does Not Execute

Last reviewed: June 27, 1995
Article ID: Q95230
The information in this article applies to:

- Microsoft FoxPro for MS-DOS, versions 2.0 and 2.5 - Microsoft FoxPro for Windows, version 2.5

SYMPTOMS

The DEACTIVATE clause in the READ command is not executed when

   another window is brought forward.

CAUSE

The window being brought forward is not a window in the current

   READ level or the window being brought forward is launched from a
   VALID, WHEN, DEACTIVATE, ACTIVATE, or SHOW clause.

RESOLUTION

Do one of the following:

    - Use the READ..WITH clause to include in the READ command the
      window being brought forward.

    -or-

    - Put the windows in a screen set with a single READ command.

    -or-

    - In the setup code or in some procedure other than the VALID,
      WHEN, DEACTIVATE, ACTIVATE, or SHOW clauses, define and activate
      the window to be brought forward.

MORE INFORMATION

The DEACTIVATE clause requires a logical expression that determines whether the READ command is terminated. If the logical expression is true (.T.), the READ command is terminated; if the logical expression is false (.F.), the READ command is not terminated.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.x read deactivate
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.