× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We were looking at the indenting as a method of matching the IF's and
END's.

The line method you mentioned is what RpgAlive does.

While I found your jump key interesting it would not replace the
visualization that indenting or the lines would, IMO.  Might be a nice
addendum but kind of low on my list.

Rob Berendt

==================
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Bob Cozzi
                    \(RPGIV\)"               To:     <code400-l@midrange.com>
                    <cozzi@rpgiv.com>        cc:
                    Sent by:                 Fax to:
                    code400-l-admin@mi       Subject:     RE: Intelligent 
Indenting with /FREE
                    drange.com


                    10/30/2001 09:45
                    AM
                    Please respond to
                    code400-l






I've been following this thread, but I have to say, indenting "Free
format" code, is an interesting request. I remember in the original
COMMON University "C Programming" classes, all the RPG programmers wrote
their code in nicely lined up columns. Old habits die hard?

But what would probably be of more use to developers (regardless of
language) is to provide some way to identify the closing ENDxx statement
for an opening IF/DO/FOR etc. statement.  Some editors draw a line from
the opening of the clause to the closing of it.

The method I've used in my editor and Microsoft's is the easiest to use
(in my view); it is a "hot key" that jumps the cursor ("Caret" in
Windows speak) between the IF statement and its closing END statement.
The hot key toggles the cursor location. For example, if you're on the
IF statement, press Ctrl+] moves the cursor to the corresponding END
statement. While on an END statement, press Ctrl+] moves it back up to
the IF statement. Of course it works for all conditional or looping
operations.



> -----Original Message-----
> From: code400-l-admin@midrange.com
[mailto:code400-l-admin@midrange.com] On
> Behalf Of SamL
> Sent: Monday, October 29, 2001 7:53 PM
> To: code400-l@midrange.com
> Subject: Intelligent Indenting with /FREE
>
> Intelligent indenting as you key is, IMHO, what is needed.  If I need
to
> key 3 lines like this:
>     1   if x=y;
>     2      a=b;
>     3   endif;
>
> I'd expect that after I hit return on line 1 the cursor would be
> positioned where I need to key the "a" on line 2.
>
> When I come to line 3 back-tab should un-indent for me.
>
> How many position to indent should be controlled by where the tab
stops
> are set, so if I want 4 I can set tab stops every 4 postions, if I
want
> 5 I can set tab stops every 5 positions, etc.
>
> It would be nice to highlight a section of code and have it
reformatted
> to the correct indent.
>
> There are "pretty formatter" available for many languages.  Should be
> well within IBM's capability to write one for free RPG.  They did it
for
> VA Java, but not very well from what I see of the comments in the
> newsgroup.  (And a formatter for CL as a bonus--actually, I have one
in
> REXX that works pretty well.  Downloaded if from somewhere years ago.)
>
> Sam
>
>  ----- Original Message -----
> From: "Westdorp, Tom" <Tom.Westdorp@StationCasinos.com>
> To: <code400-l@midrange.com>
> Sent: Monday, October 29, 2001 11:52 AM
> Subject: RE: View Indent vs free form
>
>
> This message is in MIME format. Since your mail reader does not
> understand
> this format, some or all of this message may not be legible.
> --
> [ Picked text/plain from multipart/alternative ]
> The folks on "IBM's side" on this make it sound like your indentations
> are
> overridden with IBM's indentations.  That is only true if you save the
> generated source back over your own.  There may be times to do this,
or
> not
> do this.  That choice is ours if the indentation is available for
/free
> code, but is just not available as things stand now.
>
> I also would like indentation to work with /free RPG source.
>
> Thanks.
>
> -----Original Message-----
> From: Vernon Reeve [mailto:reeve@starband.net]
> Sent: Monday, October 29, 2001 8:34 AM
> To: code400-l@midrange.com
> Subject: RE: View Indent vs free form
>
>
> I agree with IBM on this one.  The whole point of having /free is so
you
> can
> do your own indenting.  Of course a utility (like rpgalive) that does
> the
> indenting for you (when you ask it to) would be nice.  And a utility
> that
> converts all your RPGLE and/or RPG code to the free format indented
> version
> would be even better.  Maybe cvtilerpg will come out with a new
version
> to
> do this.
>
> Unfortunately I'm stuck on v4r2 for now.
>
> -----Original Message-----
> From: code400-l-admin@midrange.com
> [mailto:code400-l-admin@midrange.com]On
> Behalf Of rob@dekko.com
> Sent: Monday, October 29, 2001 7:00 AM
> To: code400-l@midrange.com
> Subject: Re: View Indent vs free form
>
>
> Well I opened up a pmr on this and this was IBM's reply:
> ACTION TAKEN: Because you have specifed /free code does not examine
>               the statements and indent them.  This is working as
>               designed.
>
> Funny thing is that SEU, combined with the software RpgAlive, will do
> this.
> http://www.rpgalive.com/
>
> Looks like IBM lags behind the competition again.
>
> Filled out a Design Change Request and will see if that goes
anywhere...
>
>
> Rob Berendt
>
> ==================
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety."
> Benjamin Franklin
>
>
>
>                     rob@dekko.com
>                     Sent by:                 To:
> code400-l@midrange.com
>                     code400-l-admin@mi       cc:
>                     drange.com               Fax to:
>                                              Subject:     View Indent
vs
> free form
>
>                     10/25/2001 11:09
>                     AM
>                     Please respond to
>                     code400-l
>
>
>
>
>
>
>
> In Code if I do a View Indent on the following it looks the same:
>       /free
>        for x=1 to y;
>        if myproc(x);
>        write rec;
>        endif;
>        EndFor;
>       /end-free
>
> Shouldn't it look like:
>       /free
>        for x=1 to y;
>         if myproc(x);
>          write rec;
>         endif;
>        EndFor;
>       /end-free
>
> Rob Berendt
>
> ==================
> A smart person learns from their mistakes,
> but a wise person learns from OTHER peoples mistakes.
>
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.
>
>
>
>
>
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.
>
>
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.
>
>
> _______________________________________________
> This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> To post a message email: CODE400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
> or email: CODE400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/code400-l.

_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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.