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

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

Join the forum, it's quick and easy

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

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Color messages

3 posters

Go down

Color messages Empty Color messages

Post  rajkumar400 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

Back to top Go down

Color messages Empty Color messages

Post  amarasuresh 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

Back to top Go down

Color messages Empty Re: Color messages

Post  shobi 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

Back to top Go down

Color messages Empty Re: Color messages

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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