Microsoft KB Archive/95230

{| = PRB: READ..DEACTIVATE Clause Does Not Execute =
 * width="100%"|

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
 * }