× 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.



It does fail gracefully. if it fact fails. The user just will not see the DSPATR you intended for them to see. If your shop is all Client Access and the hardware is newer than.. maybe the early 90s? (I am not sure of the year) then it would surprise me if using the hex codes will do you in. The problem of course is the 40-char blivet. And, of course the problem of user input if the field is input-capable.

I have used this technique for... gosh... 10+ years and never had an issue. An example of how I use it is the top image at

http://www.martinvt.com/Code_Samples/FAQ/faq.html

to give my subfile line a different color to show subfile dividing points.






Alan Shore wrote:
Thanks for the info Doug
I have done a little analysis, and right now I'm leaning on NOT doing this.
Testing this on ALL the devices & emulators in our shop would be a royal
pain, and knowing my luck, the last one tested would show that it wouldn't
work.
It was SUCH a good idea, but alas, as with all my ideas, they always look
good on paper.


Alan Shore
Programmer/Analyst, Distribution
E:AShore@xxxxxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill

midrange-l-bounces@xxxxxxxxxxxx wrote on 02/23/2009 04:50:59 PM:

Alan,

Thanks for taking the time for writing such a comprehensive response
I shall certainly investigate what I originally had planned on doing.
If you really are going to do that, just be aware you need to test it on
all
the devices / emulators you use in your shop. In theory you should also
first use DSM to verify the device reports that it supports WEA orders.
I
also looked it up and I remember incorrectly what WEA stands for -- it is
Write Extended Attribute. Here is a link to the page in the 5494
Functions
Reference:

http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/CO2E2001/15.6.
11?DT=19950629163252

but you'll want to prefix that with a Set Buffer Address order (SBA) to
set
the row and col position to be modified. You can change not only the
highlight / reverse image / underline status, but the color of each
individual character as well.

I remembered there was also an article once I how to do this, so I
searched
for it. You may find this helpful:


http://www.mcpressonline.com/programming/apis/color-by-numbers-with-dsm.html

I also remember another article which I'm not finding online -- I think
it
was in whatever iSeriesNetwork was called at the time in the 90's, and
was
titled something like "Colour Me RPG". But searching their archives for
various phrases which should have been in the article, I'm not finding it
now.

Doug
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.3/1967 - Release Date: 02/23/09 07:17:00



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.