× 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 always try to use a separate indicator area in all my display files, even
more when I use subfiles, and have an INDDS data structure. I usually
define/enable F3 at the file level.

Second, using position 369 to get the last key pressed is a good practice,
that makes you save a lot of indicators for function keys in your program.
You set them in WRITEs using that DS. I always define a variable like
"lastKey" that just after an EXFMT I retrieve and save immediately. Then
this is assigned any other value within your loop.

"Forcing" the value for the F5 key, you should manage that within the logic
of your program by setting "lastKey" somewhere in the middle so that when
reading it again you will go to your refresh routine. And I always build a
"function" like:

rc = displayScreen(...);
lastKey = rc;
if lastKey = KEY_12;
lastKey = KEY_F5;
elseif lastKey = KEY_F3;
leave;
endif;

rc here could have other values different from the function keys so you can
consider those as "actions" if they are not in the range of the F key
values.

Then, below you manage to handle the refresh routine and then redisplay it
again.

That is how I always do it and it works perfectly well.

Javier.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.