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



Hi Patrik,

Yes - true - you don't need N50 COLOR(GRN) - but you have to be careful, that the unconditional attributes and the conditional color doesn't "overlap" badly.

And - well - in fact there is a very rare case, where 5250 needs 2 attribute bytes (aka empty spaces) before a field. And that's the case if you use CNTFLD for multi-line-fields. In this case you have to leave 2 spaces between the field/constant and the CNTFLD-field.

Regards,
Daniel


Am 27.11.2024 um 17:03 schrieb Patrik Schindler <poc@xxxxxxxxxx>:

Hello Charles,

Am 27.11.2024 um 16:11 schrieb Charles Wilt <charles.wilt@xxxxxxxxx>:

Assuming you've done things correctly...

How much space have you left between fields? You need at least 2 ( maybe 3? it's been a while) spaces between fields.

Wrong. The attribute byte is just a the start (and end) of a given "region" on screen and needs exactly one position each. It doesn't matter if we're talking subfiles or plain screens. There is no designated end but in fact the start of another "region" with different attributes.

This is the main reason many DSPF elements go into in position 2 of a screen line, and not 1: You have a nice adjustment, and space before the element for attributes.

The screen buffer is circular. You can place your screen elements in position 1. The attribute position then wraps back into into the last position of the line before. It boils down on whether this position is prone to being overwritten to exploit this possibility successfully.

This is from my experience, in part being reinforced by statements in the DDS Reference, and Application Display Programming books.

:wq! PoC

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


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.