Re: ON KEY with EXIT INPUT: loosing field data
Posted in 1995
In article <D8JD80.A42@candle.pha.pa.us> root@candle.pha.pa.us "Bruce Momjian" writes: > Newsgroups: comp.databases.informix > Path: misslink.demon.co.uk!news.demon.co.uk!demon!news.sprintlink.net! > howland.reston.ans.net!gatech!newsfeed.pitt.edu!dsinc!jabber!candle!root > From: root@candle.pha.pa.us (Bruce Momjian) > Subject: ON KEY with EXIT INPUT: loosing field data > X-Newsreader: TIN [UNIX 1.3 950131BETA PL0] > Organization: a consultant's basement > Message-ID: <D8JD80.A42@candle.pha.pa.us> > Date: Sat, 13 May 1995 21:33:36 GMT > Lines: 30 > > The ON KEY command expects to return to the current field. Because my > ON KEY contains an EXIT INPUT statement, any data changes in the current > field are discarded when the EXIT INPUT is done. > > Now, the only solution I can think of is to call a C function from the > ON KEY which will stuff an ESCAPE into the keyboard buffer, so the > function key will simulate an ACCEPT key. The problem there is that I > am developing for SCO 3.2.2 (ech!), which does not have a TIOCSTI-type > call. Look at the supplied library function 'get_fldbuf()' which will do what you want. This was documented in 4GL 4.1, but it may have been around before that undocumented. -- ======================================================== Simon Bunce simonb@misslink.demon.co.uk SHL Learning Technologies +44 (0)171 415 9900 ========================================================