Use of alarm() with 4gl code
Posted in 1997
G'day everybody. I would like to use a timer within a number of 4gl (works!) applications to trigger actions if the user hasn't pressed a key in some time. Alarm(), of course, is a likely candidate, so I have already strolled to the IIUG sw archives and downloaded timeout.Z. Works nicely. Since this is a request that crops up every so often (last time being some two months ago), I vaguely remember Jonathan saying that alarm() is internally used by INPUT (and I suspect INPUT ARRAY, DISPLAY ARRAY and CONSTRUCT too). Fair enough. I will only be using alarm() while waiting for rgetkey() (for the unaware, an undocumented function that reads characters from the standard input) to return chars. Can somebody confirm that this will (probably!) work irrespective of the 4gl wersion used? TIA, Marco ____________________________________________________________________________ Marco Greco <marcog@ctonline.it> rem radioterapia 39 95 447828 fax 446558 Informix-FAQ http://www.iiug.org 4glWorks http://www.ctonline.it/~marcog