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



Dave, 

There currently is no method to "beautify" the code.  And TPTB have 
decided that you don't need that function.  In fact, they have decided 
that once you are in free form then you will never make an error on your 
loop structures, etc thus you do not need the View - Indent option that is 
available on fixed format code.  If you want this function in free format 
then you will need an enhanced editor, like SEU.  (And the third party 
product RPGAlive available at:
http://rpgalive.com/

Sure wish they would add this to code/400 though.

It is probably considered a design enhancement to not do large looping. 
Break your code down into ridiculous chunks.
/free
 for x = 1 to 10;
  if ary(x) >20;
   // do this and that
  endif;  // ary(x)>20
 endfor;  // x = 1 to 10
/end free

becomes:
/free
 for x = 1 to 10;
  aryofxsub();  // define a subprocedure to break down looping
 endfor;  // x = 1 to 10
/end free

 

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




Dave Murvin <davem@drme.com>
Sent by: code400-l-bounces@midrange.com
01/25/2003 09:46 PM
Please respond to CODE/400 Discussion & Support
 
        To:     code400-l@midrange.com
        cc: 
        Fax to: 
        Subject:        How to set tabs for free form mode


I am trying out the /free for RPG specs and am having a hard time figuring 

out how to set the tabs for the free form lines.

I changed the editor parameters for tabs from 5 EVERY 5 to 3 EVERY 3, but 
it did not appear to work.  When I use the tab key, cursor still skips to 
column 8, 10, 20, 30, etc.

Am I missing something?  Is there a format line for free form code that 
will work with the tabs I want to use?

Also - are there any options to "beautify" the code (auto adjust indents, 
etc) like in some of the Java IDEs?  It gets to be a pain to have to 
manually adjust all the lines when you make a change and the "beautify" 
options come in handy.

Thanks


Dave Murvin
DRM Enterprises, Inc.
davem@drme.com


_______________________________________________
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/mailman/listinfo.cgi/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.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at 
http://lists.midrange.com/cgi-bin/listinfo/wdsc-l



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.