×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




The RPG Toolbox from Linoma will not comment out lines of code.

What the Toolbox will do is add in new comment lines in SEU below the current line.
I* will add three fixed form comment lines
I/ will add three free form comment lines
I/* will add three CL comment lines

The options in RDi to comment and uncomment lines of code seems to work great.
You can select a block of code and then either right click and select source and comment or use the Ctrl+/ options.

If you are in Fixed form the asterisks are put in column 7.
When in Free form the //s are put in column 8.
When in **FREE then the //s are put in column 1.

RDi does seem to get confused though if you switch a program to **FREE and then use Ctrl+Z to put it back to the older Free form.
Then when you add the //s they are placed into column 1 instead of column 8.

Ron



-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Wednesday, May 18, 2016 5:28 PM
To: Wdsci-L
Subject: Re: [WDSCI-L] Any change to RDI settings to edit **FREE totally free RPG?

I thought Linoma did it so I checked the manual (http://www.linomasoftware.com/download2/manuals/rpgboxmanual.pdf) and yes it does. I’ve been using Code/WDSC/RDi for so long I’ve never needed to use this part of the Linoma tools but it is there along with a whole bunch of other goodies. See page 21 of that link for the Quick Reference.

I understand what you are saying but can only repeat my own experience - which is that the /* ,,, */ type blocks can cause chaos in a green screen environment - even more so when the block extends over multiple screens and you don’t have the start or end in sight. And yes - I have personally wasted a lot of time trying to debug comments!

Admittedly in the days when I had that issue I was using a Rexx enabled editor and had macros that would comment out the individual lines for me in one go …


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On May 18, 2016, at 6:06 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:

On Wed, May 18, 2016 at 5:24 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
It sounds good - and using it in RDi - sure - the color coding makes the comment obvious.

But in shops where folks insist on using SEU that “feature” is a sure-fire time waster and error generator.

I was going to let this thread go, and I do still think this is a
minor issue any which way you slice it; but the way I see it, block
comments would be a much bigger help in SEU than in RDi.

You said yourself that RDi has an easy way to comment or uncomment a
whole block at a time (using line comments on a selection). Most
editors designed for programming have this feature, and I agree it
makes block comments almost completely superfluous.

But how do you comment out a whole bunch of lines in SEU? I will be
extremely embarrassed if there's an easy way and I've been missing it
all these years, but I will survive the embarrassment if you point it
out now. What I normally do is "sidestep" the code by surrounding it
with "if '0';" and "endif;". The avoided code is of course still
parsed and compiled and could conceivably contain old-style variable
declarations and so on, but it's the simplest and quickest way I know
to achieve something similar to a block comment in SEU. It also has
the added bonus of not touching the dates on the pseudo-commented-out
lines.

Does the Linoma software maybe have SEU extenders that do RDi-style
line-comment-over-a-selection?

John Y.
--
This is the Rational Developer for IBM i / Websphere Development
Studio Client for System i & iSeries (WDSCI-L) mailing list To post a
message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.

--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.