Microsoft KB Archive/95365

{| = PRB: Screen Generator Treats &quot;NOTE&quot; in First Line as Comment =
 * width="100%"|

ID: Q95365

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS         | WINDOWS kbprg kbprb 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 &quot;NOTE&quot; 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 &quot;NOTE&quot; in the first line of all code snippets associated with screen objects. If the word &quot;NOTE&quot; 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 &quot;note&quot; in lowercase letters or modify GENSCRN.PRG.

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 = &quot;TEST&quot; 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 &quot;NOTE&quot; 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

Keywords         : FxtoolSbuilder Version          : 2.00 2.50 2.50a | 2.50 2.50a Platform         : MS-DOS WINDOWS
 * }