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

ID: Q95365

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS          | WINDOWS
kbprg kbprb

The information in this article applies to:

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

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

Last Reviewed: April 30, 1996