GENSCRN Parses PARAMETER Differently in 2.5 Than in 2.0

Last reviewed: March 10, 1997
Article ID: Q103574
2.50 2.50a | 2.50 2.50a
MS-DOS     | WINDOWS The
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

SUMMARY

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.

MORE INFORMATION

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 kbtool
Version : 2.50 2.50a | 2.50 2.50a
Platform : MS-DOS WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.