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



Hi,

I have been using the CTRL-SHIFT-F formatting option introduced with RDi 9.5, and it works well apart from a few little things.

If you do not select any code lines then press CTRL-SHIFT-F, RDi goes into some infinite loop and needs killing. I think this was mentioned before, but I thought I would note it just in case.

If you format the code and there is embedded SQL in there, the formatted SQL changes so that the second line (after the exec sql) is not indented. If you type in the SQL line then the standard formatter rearranges it according to SQLRPGLE preferences, but if you use CTRL-SHIFT-F (intentionally on the SQL lines, or otherwise) it then rearranges it to its own preferences.

If you format some code with a FOR (RPGLE) statement in it, the FOR is sometimes dragged back to column 6 and RDi then insists the line is an F-spec for fixed format RPG, even though the lines around it are free-format and formatted correctly. See this snippet:

(Select these lines)
----> // Send emails as well, if applicable
----> If w#SendEmails = *ON;
----> For w#bkno = 0 To 1;
----> processedCount = 0;
...
----> EndFor;
----> EndIf;
(then press CTRL-SHIFT-F)
----> // Send emails as well, if applicable
----> If w#SendEmails = *ON;
!!!!>For w#bkno = 0 To 1;
----> processedCount = 0;
...
----> EndFor;
----> EndIf;

(first 5 columns are just my notes and are not in the actual source)

Finally, if you try to format the same lines of code twice, you get an error above the LPEX command-line: "Formatting failed due to "null"". Usually I can work around this by changing the selected lines, but sometimes it then formats a couple of unselected lines below the selection.

Has anyone else seen any of this? (RDi 9.5 on Win7x64, over IBM i v6.1)


-Paul.
---------------------------------------------------------------------------------------
Important This email transmission and any files with it are strictly confidential to the intended recipient and may be legally privileged. Any views or opinions presented are solely those of the author and do not necessarily represent those of BHSF. If you are not the intended recipient, you must not copy, disclose or distribute its contents in any way.
If you have received this email in error, please notify the sender and delete the email from your system. We have taken steps to ensure this email and attachments are free from any virus but do not accept any responsibility once this e-mail has been transmitted. You should scan any attachments for viruses. No contract may be concluded on behalf of BHSF Group Limited or its subsidiary companies by email.
Registered Office: BHSF Group Limited, Gamgee House, 2 Darnley Road, Birmingham B16 8TE. Registered in England number 04767689. BHSF is authorised and regulated by the Financial Conduct Authority and Prudential Regulation Authority.

This email has been scanned for email related threats and delivered safely by Mimecast. For more information please visit https://www.mimecast.com
---------------------------------------------------------------------------------------

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.