|
I suggest you use a dspf. You can declare it in your CL and turn on indicators &IN03 &IN12 when the user presses a function key. If you use the SNDUSRMSG the message will probably go to the first signon of the user. Just create the DSPF then in your CL DCLF DISPLAYF SNDRCVF DISPLAYF01 /* format name */ all of the fields you define in the display file will then be available to your CL. The INK* indictators will not work so you have to define an indicator per function key you want to use. (Usually IN01..IN24) John Hall Joe Giusto wrote: > > I have a CL that sends a user message asking for Y or N in order to continue > a procedure. I have the return value working o.k. but I need a way to > check if the user pressed F3 or F12 to cancel. > Does anyone know how to check for the command keys? > > Thank you, > > Joe Giusto II +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.