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



Hello Frederik,

Am 12.08.2022 um 14:53 schrieb Frederik Vanderhaeghe via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx>:

Now I would like to have a window with 2 subfiles, is that possible?

I'd say, yes. Eventhough I have not yet done this myself.

It shows SFLCTL7 with subfile SCHERM7, but it doesn't show SFLTCL8 with SCHERM8...
I'm not getting any errors anymore when executing the program.
I first write SFLCTL7, then SCHERM7, then SFLCTL8, then SCHERM8 and then exfmt SFLCTL7.

You EXFMT SFLCTL7. This has no OVERLAY keyword and thus overwrites SFLCTL8. Use READ instead. And test if it works properly. Because…

My experience: The DSPF logic can't know which of the two subfiles the user will access last (cursor position). Thus I've found out that I better do writes to all record formats so they are shown on screen, and then READ from the *file* itself, not a record format. Cursor position and response to a certain record format doesn't matter anymore then, and even changes to both subfiles are properly handled. (Need a READC-Loop for each SFL.)

I don't know if this is applicable to your situation, though. You might need to experiment somewhat.

:wq! PoC


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.