Microsoft KB Archive/103574
GENSCRN Parses PARAMETER Differently in 2.5 Than in 2.0
2.50 2.50a | 2.50 2.50a
MS-DOS | WINDOWS The
kbtool The information in this article applies to:
The 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.
In FoxPro version 2.0, GENSCRN treats the following SETUP code snippet
#SECTION 1 FUNCTION MyFunc PARAMETER MyPara
as 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 KBCategory: kbtool KBSubcategory: FxtoolSbuilder
Keywords : FxtoolSbuilder Version : 2.50 2.50a | 2.50 2.50a Platform : MS-DOS WINDOWS
Last Reviewed: March 11, 1997