PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Color messages

View previous topic View next topic Go down

Color messages

Post  rajkumar400 on Wed Dec 29, 2010 1:30 am

I would like to display error message in red color using ERRMSG or ERRMSGID.

Is it possible?

Thanks.
Raj

rajkumar400

Posts : 59
Join date : 2010-12-25

View user profile

Back to top Go down

Color messages

Post  amarasuresh on Tue Jan 11, 2011 1:07 pm

I haven’t seen ERRMSG() ever supporting any method of color attributes. However, there is a possibility that ERRMSGID() might be possible.When creating the message definition used for ERRMSGID(), try placing the RED display attribute hex value at the beginning of or embedded within the message text. You might want to create a small CL program to fashion the ADDMSGD or CHGMSGD command in order to concatenate hex ‘28′ with the text. Use hex ‘20′ later in the text if you choose to return color back to normal.

I wouldn’t plan on it working, but it seems possible. I’d guess that this isn’t a usual thing for ERRMSG()/ERRMSGID() because of how processing flows for the user when those come into effect.

amarasuresh

Posts : 13
Join date : 2010-06-18

View user profile

Back to top Go down

Re: Color messages

Post  shobi on Thu Mar 10, 2011 12:28 pm

hi suresh can u explain more about color messages i am nt able to understand

shobi

Posts : 2
Join date : 2011-03-08

View user profile

Back to top Go down

Re: Color messages

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum