×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hello  Dan,

Instead of testing the AID bytes, which get the same value after pressing enter 
or leaving a field with CHECK(ER), you can calculate the cursor position using 
the CURLOC keyword;
or use the RTNCSRLOC and test the second value on this keyword for the field 
the cursor was in. I do not know, if the system returns the fieldname which you 
have atributed with CHECK(ER), as the user intended to leave that field.

Regards.
Carel Teijgeler

======= At 2002-06-19, 13:19:00 you wrote: =======

>Is there a way to differentiate in an RPG-IV program whether the Enter key
>was pressed by the user, or "Enter" is returned to the program because of
>the CHECK(ER) doing its thing?  I want to position the cursor differently
>between the two.
>
>I have an AID constants template that defines all of the AID bytes, and I
>see one that I've called $FAES having a constant value of x'3F', which is
>documented as "Automatic Enter (Selector Light Pen)".  I set up a test
>program to see the AID byte that gets returned from CHECK(ER); the AID byte
>comes back as x'F1' (Enter).

= = = = = = = = = = = = = = = = = = = =







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.