GENSCRN Parses PARAMETER Differently in 2.5 Than in 2.0Last reviewed: March 10, 1997Article ID: Q103574 |
2.50 2.50a | 2.50 2.50a
MS-DOS | WINDOWS Thekbtool The information in this article applies to:
SUMMARYThe Screen Generator (GENSCRN.PRG) specifically parses the PARAMETER statement in FoxPro versions 2.5 and 2.5a for MS-DOS and Windows. In FoxPro version 2.0 for MS-DOS, GENSCRN does not look specifically for the PARAMETER statement.
MORE INFORMATIONIn FoxPro version 2.0, GENSCRN treats the following SETUP code snippet
#SECTION 1 FUNCTION MyFunc PARAMETER MyParaas you would expect by placing the FUNCTION statement, followed by the PARAMETER statement, immediately after the #REGION 1 statement in the .SPR file. However, in versions 2.5 and 2.5a, GENSCRN takes the above SETUP code snippet and makes the PARAMETER statement the first executable line of code in the .SPR file, and then farther down in the code, inserts the FUNCTION statement immediately following the #REGION 1 statement. This behavior is by design. This change was made in version 2.5 so that GENSCRN can generate code for multiple platforms into the same .SPR file. Since the PARAMETER statement must be the first executable line in the .SPR file, any PARAMETER statements in #SECTION 1 of the SETUP snippet are extracted and placed at the top of the .SPR file.
|
Additional reference words: FoxWin FoxDos 2.50 2.50a REGION SECTION
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |