Focal Point
Inline Comment [CLOSED]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3627037276

September 19, 2014, 03:19 AM
ruhan
Inline Comment [CLOSED]
According to the manual "A comment line may be placed at the beginning or end of a procedure, or in between commands. However, it cannot be on the same line as a command."

The following works without a problem in version 8008:

TABLE FILE CAR
SUM DEALER RETAIL -* TWO FIELDS AGGREGATED
BY COUNTRY
BY CAR
END

This is very handy, if this behavior is not going to be "fixed". Any comment from IB?

This message has been edited. Last edited by: ruhan,
September 19, 2014, 03:44 AM
MichaelBalle
If you put your comment

...
-* TWO FIELDS AGGREGATED
SUM DEALER RETAIL
...
it has the same effect ...


WebFOCUS 7.6, 7.7
Windows, All Output formats
September 19, 2014, 04:24 AM
Alan B
The inline comment has worked under very limited circumstances for a while now. But there are issues with using it. It is because of these issues that there will be no support currently for this, and the documentation is clear as to how comments should be used.


Alan.
WF 7.705/8.007
September 19, 2014, 11:05 AM
j.gross
But note that traditional comments are recognized as such (and stripped out) by the Dialog Manager scan, whereas this kind of comment is passed into FOCSTACK as part of the command line, and it is up to the intelligence of each command (JOIN, TABLE, DEFINE) to recognize and ignore that part of the line.

Try this:

-SET &ECHO=ON;
TABLE FILE CAR
SUM DEALER RETAIL -* &QWERTY IS UNDEFINED
BY COUNTRY
BY CAR
END



- Jack Gross
WF through 8.1.05