Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Comment Multiple Lines of code.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Comment Multiple Lines of code.
 Login/Join
 
Platinum Member
posted
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.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
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.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 230 | Location: Wichita, KS | Registered: May 27, 2005Report This Post
Platinum Member
posted Hide Post
Trav,
iam expecting IBI will provide in their next coming versions .

Thanks,
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 230 | Location: Wichita, KS | Registered: May 27, 2005Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
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
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Platinum Member
posted Hide Post
Yes I go with the answer of Don, or is this too easy?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Comment Multiple Lines of code.

Copyright © 1996-2020 Information Builders