Re: Getting last key pressed in 4GL
Posted in 1994
From Michel Behna: * * In article <2tjopt$8k7@rzcom.stadt-mh.de> scheer@AMT10H01.stadt-mh.de (Dirch Scheer) writes: * >From: scheer@AMT10H01.stadt-mh.de (Dirch Scheer) * >Subject: Getting last key pressed in 4GL * >Date: 14 Jun 1994 08:12:45 GMT * * >Hello out there, * * >I want to implement the following mechanism with 4GL: * * >A database is polled every 3 seconds and some sums are displayed on screen. * >This is programmed in a endless loop. In this loop I check for pressing of * >the INTERRUPT key by checking the value of int_flag. If this button is * >pressed the user will end the endless loop. Everything is working fine. * * >But now my question. I want to use other keys to start printing of the * >current shown sums or to switch the display. Till now, I don't have found * >any solution to get the last key pressed by user except the INTERRUPT key. * * Look at fgl_lastkey() function. I know it was undocumented and if you need the * info I can dig it up. It returns an int ( I think, I am quoting from memory * and mine is not as good as it used to be :-) ). fgl_lastkey() only works after you hit an INPUT, INPUT ARRAY or PROMPT statement which I don't think is exactly what Dirch wants to do. More likely will need to link in some code that will act like DOS' kbhit() routine. Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> SURF'S UP \\_/