× 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.



I think changing the actual source would be somewhat more useful as well
but I'm not the one
who uses it all the time.  I liked the idea someone had of highlighting a
block and then clicking on
an "Indent" option which would actually change the source.  That would be
particularly useful if
you added an "IF" around a big block of code.

Someone also mentioned about jumping from an IF to it's corresponding END.
(or  END to IF).
This is currently available using  View->Match->Jump  (Ctrl+Shift+M).

Michele Cummings

WDT iSeries Development
IBM Toronto Lab



"SamL" <lennon_s_j@hotmail.com>@midrange.com on 10/30/2001 08:19:20 PM

Please respond to code400-l@midrange.com

Sent by:  code400-l-admin@midrange.com


To:   <code400-l@midrange.com>
cc:
Subject:  Re: Intelligent Indenting with /FREE


I'd rather see the effort go into intelligent auto indenting the source
rather that an indented view of /free code.  If the code is
intelligently indented then the need for an indented view is largely
gone. (Though it would seem that there might be code in common in the
two tasks.)  Of course, I can see the need to re-indent when the
original programmer(s) left a mess.

I love the current indented view.  For quick research, it helps make
sense (ok, some sense) out of the convolutions of the past.  Much better
than having an indented compiled listing.

Sam

----- Original Message -----
From: <mcumming@ca.ibm.com>
To: <code400-l@midrange.com>
Sent: Tuesday, October 30, 2001 8:03 AM
Subject: Re: Intelligent Indenting with /FREE


Sam,
I agree that intelligent indenting would be a great thing to have in the
/free blocks.  I'll add it to our considerations list.
As far as the View->Indent in the /free block goes, it is working as
designed but I'll give some thought to indenting it as well.

Thanks for your ideas!


Michele Cummings

WDT iSeries Development
IBM Toronto Lab



"SamL" <lennon_s_j@hotmail.com>@midrange.com on 10/29/2001 08:53:10 PM

Please respond to code400-l@midrange.com

Sent by:  code400-l-admin@midrange.com


To:   <code400-l@midrange.com>
cc:
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.


_______________________________________________
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.