PRB: Screen Generator Treats "NOTE" in First Line as Comment

Last reviewed: April 29, 1996
Article ID: Q95365
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

If the first line of a program contains the word "NOTE" in a screen object clause, the line is considered a comment by the Screen Generator program.

CAUSE

The Screen Generator program searches for the word "NOTE" in the first line of all code snippets associated with screen objects. If the word "NOTE" is found in all capital letters anywhere on the first line, the entire line will be generated as a comment in the screen program.

RESOLUTION

Use the word "note" in lowercase letters or modify GENSCRN.PRG.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a screen with a single GET object.

  2. Add a VALID clause to the GET object.

  3. In the VALID procedure, type the following:

          M.NOTES = "TEST"
          WAIT WINDOW
    

  4. Generate the program.

In the resulting .SPR program, the first line of code above will be generated BEFORE the VALID clause. This will result in that line not being executed until after all other cleanup code at the end of the program.

GENSCRN.PRG searches for the word "NOTE" only in code snippets for screen object clauses, NOT for READ clauses.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a uppercase lower
upper
case
KBCategory: kbprg kbprb
KBSubcategory: FxtoolSbuilder


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.