what key did a user press
Posted in 1995
Hi, On February 16, Keith wrote: >I'm sure somebody out there must have encountered this one before... >Does anybody know of an Informix library function which returns the >value of a key pressed by the user ? > STUFF DELETED Sure have..You can find more details in the Informix 4GL Supplement, but here's the short and sweet of it: Informix provides fgl_lastkey() and fgl_keyval(). fgl_lastkey() returns the integer value corresponding to the key the user last pressed. fgl_keyval() returns the key code of a specified string that specifies a key like accept, esc, etc. You can check what action to take, for instance : INPUT .... AFTER FIELD a IF fgl_lastkey() = fgl_keyval("up") THEN -- do something END IF .... END INPUT Hope this helps... Evita Chapa erc@antares-dev.com