Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/103574

From BetaArchive Wiki

GENSCRN Parses PARAMETER Differently in 2.5 Than in 2.0

ID: Q103574

2.50 2.50a | 2.50 2.50a


kbtool The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, versions 2.5 and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a


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


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
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.