This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to see current state of keystroke table

Hi everyone.  Our application does dynamic changes to the KEYSTROKE variable settings for various keys.   Due to some recent odd behavior I was wondering if there was a way to get the current state of the KEYSTROKE settings?

All I have figured out is that when using the debugger, changes to the environment get recorded in the error log file.  That turned out to be enough, but the original question still stands.  I figure I could write a utility to read through the trace file and sort by the key code, to see what the current state of the settings are, but I'll leave that until it's needed.  If anyone knows a better way, I would love to hear it.

  • 0  

    The KEYSTROKE variable cannot be read with the ACCEPT FROM ENVIRONMENT statement so you cannot query the current table of keys. Perhaps when you modify the KEYSTROKE in your program you can write to a log file specific for this purpose. That way it will be easier to parse and query that log when you need to without having to filter out all other unnecessary information. 

    ---

    Martin Turner

    Senior Technical Support Engineer

    Rocket Software