× 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 I’ve found a tiny – but irritating – bug in the LPEX editor when coding SQLRPGLE source. Anyone care to verify?

Consider the following piece of simple code:

===========================
Dcl-S ServerName Char(10);

Dcl-S Message Char(30) Inz('Server is:');

EXEC SQL
VALUES Current_Server INTO :Servername; // Line 1

Message = %TrimR(Message) + ' ' + ServerName; // Line 2

Dsply Message '*REQUESTER';

*InLR = *On;
===========================

- From the RDi menu bar select, Window > Preferences
- Select the preference for, Remote Systems > Remote Systems LPEX Editor > IBM i Parsers > ILE RPG > Free-form SQL Formatting
- Tick the choice for Automatic Uppercasing, (I also have Style: Custom/Uppercase/Initial Character selected)
- Click Apply and OK

CASE A). UNEXPECTED BEHAVIOUR
In the above source, position the cursor immediately before the ‘//’ in Line 1.
Press ENTER a few times:
The cursor moves on to the next line and stays fixed in that position; at each subsequent press of ENTER, new lines are added AFTER the cursor line.

CASE B). EXPECTED BEHAVIOUR
Now position the cursor immediately before the ‘//’ in Line 2.
Press ENTER a few times:
The cursor moves on to the next line; at each subsequent press of ENTER, new lines are added BEFORE the cursor line AND the cursor moves down.

The Expected Behaviour can be achieved in CASE A). if the Automatic Uppercasing is deselected in the Preferences.

(RDi 9.5.1 under Windows 7 and Windows 10.)

Brian Parkins

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.