View Full Version : SEU text color
08-03-2006, 06:30 AM
ami_as400 wrote: > Hi, > How to set the color of commented text in RPG/CL to white. Here's a utility to colorize seu: http://search400.techtarget.com/originalContent/0,289142,sid3_gci865279,00.html Bill
08-04-2006, 08:56 AM
I mapped my keboard to do by putting apl 22 in for the action IE for W under the Alt key --> Alt apl 22 to use press Alt W and press enter. Remember that this is going to take up a character space and it will appear as a blank
08-05-2006, 08:52 AM
Hi. In order to update the RPG sources, you can do a simple CL with the lib/source file/source member as parameters - that makes an ovrdbf and launches a *qmqry that updates e.g. the second character of SRCDTA with the hex code of the desired color, where substr(SRCDTA, 7, 1) = '*'. Furthermore, if you want to do this for an entire library, you can write another CL that calls this one n times. But I have no idea how could this be implemented for the CLs (I tried once and I gave up - if you put the hex code before the beginning comment mark "/*", the compiler doesn't like it. If you put it after, you miss the color of the "/*" itself...).
08-07-2006, 06:18 AM
You might try WDSC. It is a great editor and does not require special codes to be in the source. Those special codes also can cause problems for those of is that do use WDSC. I have had occasions where I was unable to do a copy past of a code section when special codes are included..
08-07-2006, 06:25 AM
The utility Bill R points to looks like an ideal solution...if you are not a contractor working on someone else's system...but unfortunately, this doesn't work for me. I've seen a number of references to "apl 22", but I don't know what "apl" mean. Is this a text string?...or code for something else? Could someone please point me to documentation on what this means? After searching, I've seen several references that use the "apl" solution for CA/400, but my current customer uses Rumba. Would this work here? TIA.
08-07-2006, 01:37 PM
ami_400, Try the following ILE RPG program. Create a source physical file called QRPGLESRC with an empty member. Then call the following program. It will create a "comment" record for each color type. Please make sure of your library list or just override the file and member before the call. Do NOT use this to "convert" a member. It will only create the default records. After the program runs, view the new member to see all of the color combinations. Then you can copy any of these records into your program via SEU. Hope this helps. <hr width=50 align=left>Code ('http://www.mcpressonline.com/mc/showcode@@.6b3a0092/5')
08-07-2006, 01:48 PM
Hi, How to set the color of commented text in RPG/CL to white. Please advise. Thanks.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.