+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Display Message Subfile In Color?

  1. #11

    Default Display Message Subfile In Color?

    Barbara, that's exactly the approach I would take. By adding the "attribute character" as the first byte of the message, you could then set it to whatever value you need. Just be sure to reserve the first byte of your message data for the attribute.

  2. #12
    Guest.Visitor Guest

    Default Display Message Subfile In Color?

    I tried using "Eval MsgData = X'2E' + MsgData" with a subsitution variable at the beginning of the predefined message but it still didn't work. How should the MsgData and MsgData length variables be defined in my RPG IV program? Also, how should I define the subsitution variable at the beginning of the message? Thanks!

  3. #13

    Default Display Message Subfile In Color?

    Sorry Douglas, I can't help you much with the RPG-IV code since I'm primarily a COBOL'er. I do know that if you change the 1st character in your string to match one of the hex codes posted that you will get some neat effects. With the disclaimer that I'm *not* an RPG'er, here's what my attempt would look like: D MsgData DS D Attrib 1 INZ(*BLANKS) D Message 79 INZ(*BLANKS) D MsgLen S 10I 0 INZ(0) and then use the EVAL command: C EVAL Attrib = x'2E' C EVAL Message = 'My Message' C EVAL MsgLen = 80 Good Luck Terry

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Replies: 1
    Last Post: 02-22-2006, 02:53 AM
  2. Replies: 1
    Last Post: 10-17-2005, 02:00 AM
  3. Display blank subfile with error message
    By trevor.lazarus@ssa.gov in forum RPG
    Replies: 3
    Last Post: 01-13-2004, 09:11 AM
  4. Changing Display Screen Color
    By David Abramowitz in forum General
    Replies: 3
    Last Post: 03-24-2003, 09:22 AM
  5. Displaying end of subfile message on expanding subfile
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 03-02-2001, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts