PRB: "Mismatched Case Structure" with Multiplatform .SCX FileLast reviewed: June 27, 1995Article ID: Q112450 |
The information in this article applies to:
SYMPTOMSIf a screen is transported from one platform to any other platform, and a hard-coded procedure in a code snippet is written into the generated .SPR file before the Cleanup/Procedures code, a "Mismatched Case Structure" error message appears.
CAUSEIn a multiplatform environment, the .SPR file is generated with a CASE statement, with _WINDOWS and _MAC being one case, and _DOS and _UNIX being the other. The error message "Mismatched Case Structure" occurs when FoxPro encounters a hard-coded PROCEDURE command in the screen's Setup code that is within the first CASE statement. FoxPro assumes it has moved beyond the end of any iterative logic because it encountered the PROCEDURE command before the termination of the CASE statement by an ENDCASE statement.
STATUSThis behavior is by design. All procedures and functions should be included in the Cleanup/Procedures code snippet of a screen and should not be included in any other snippet.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: FoxMac FoxDos FoxWin 2.50 2.50a 2.50b cross-
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |