× 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'm trying to highlight part of an alphanumeric field, but I can't seem
to find the hex equivalent of high intensity or the color white.  I know
I can use %Subst(SomeAlpha:5:5) = x'21' to reverse image part of a
string. I figured I'd try the same concept. I looked in the RPG and DDS
references but I can't find what I'm looking for. Does anyone know where
I can find a table explaining hex codes or the hex equivalent of high
intensity or the color white?

x'22' is "white" or "high intensity".
What you're doing is inserting attributes from the 5250 data stream into your strings. Note that this type of "highlighting" will only work if your program is run through a 5250 interface.

Here's the docs for attributes in the 5250 data stream:
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/CO2E2001/15.6.12.3?DT=19950629163252

There's also a list under the DSPATR keyword in the DDS reference manual, but there are a few codes (maybe only one?) that work through DSPATR but don't work when sent directly to a terminal. The link I provided above won't show you the DSPATR specific stuff, it shows the data the way the terminal interprets it.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.