Focal Point
[SOLVED]Comment Multiple Lines of code.

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

October 18, 2006, 08:32 AM
kalyanswarna
[SOLVED]Comment Multiple Lines of code.
Hi All,

i would like to know How to Comment Multiple Lines of code in the fex.

i knew the comment for single line.

Thanks,
Kalyan

This message has been edited. Last edited by: Tamra,


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
October 18, 2006, 09:15 AM
Leah
I don't know as there is a way to do a block comment without the '-*' on every line. I think this goes way back to the days of when FOCUS had some FORTRAN under the covers if my rumor mill serves me correctly.


Leah
October 18, 2006, 09:21 AM
mgrackin
The only way to do this is to use -GOTO to skip around the code. The following example will skip the BY phrases.

TABLE FILE CAR
PRINT RCOST DCOST SALES
-GOTO SKIPSORT
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
-SKIPSORT
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
October 19, 2006, 12:39 AM
kalyanswarna
Hi,

i think there is no direct way to Comment multiple lines of code.

Thanks,
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
October 19, 2006, 09:27 AM
Trav
Glad I wasn't the only one wondering about this. Seems a little silly that you have to type -* for each line. I understand the use of GOTO would work, but in some cases if there are amper variables or whatever in that code you may not want those even parsed. If you have prompt for variables on, then it will prompt for that amper (even if it's never referenced in any of the code that is being executed).

I also think it would be more effective to have it commented out because at least to me, if I visually see it commented out, that tells me, oh that code is not in use. Where if you are just scanning a fex, you might not see the goto that passes a particular block of code and leads to confusion.

I have seen other IDEs offer a shortcut key (or menu item) where you can highlight multiple lines of code and then comment (or uncomment) them all out. In this case it would put a -* in front of all of them (or take it out).

Hmm, maybe I'll log an enhancement request......



Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
October 20, 2006, 01:53 AM
kalyanswarna
Trav,
iam expecting IBI will provide in their next coming versions .

Thanks,
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
October 20, 2006, 06:19 AM
Tony A
Kalyan,

Don't expect it without requesting a New Feature Request (NFR) which you would have to do via the tech support pages.

Myself, I can't see the addition be made Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
October 20, 2006, 09:54 AM
Trav
Just logged my NFR -- I would encourage other to do the same.

Mine specifically requested the ability to do comment blocks /* comment */ and the ability to highlight and comment or uncomment the entire section via keystroke or menu item.



Production: 7.6.6 WF Server  <=>  7.6.6 WF Client  <=>  7.6.6 Dev Studio
Testing: <none>
Using MRE & BID.  Connected to MS SQL Server 2005
Output Types: HTML, Excel, PDF
October 23, 2006, 01:25 PM
Francis Mariani
Good luck with your NFR! I can't see how this will work. If you will be able to use Dev Studio to highlight several lines of code to comment them, how will Dev Studio do this when looking at the report via the GUI interface?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 18, 2016, 07:51 AM
Don Garland
Highlight multiple rows and hit CTR-M. CTR-R to remove the comment.


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
November 18, 2016, 10:20 AM
SWES
Yes I go with the answer of Don, or is this too easy?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup