Re: how to get the value of a typed-in field
Posted in 1992
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
In article <1992Apr7.162351.9860@cssnl.syssup.tds.philips.nl> harry@.syssup.tds.philips.nl (Harry Weseman) writes: >Hi! > >In informix-4gl, (I have 1.10.03), I would like to inspect what the user >has typed in. I am using an INPUT statement, that gives me the value of >a field with the AFTER FIELD clause. However, with the ON KEY clause, and >then an IF INFIELD(field1) statement, I know that the user has typed something >into the field I want, but I cannot get it from the input buffer. Or is >there a way? > In compiled Informix .03 I know of a means of accessing the input buffer it uses a bit of a 'phreak' in the <$INFORMIXDIR/incl/sqlfm.h> as follows insert the following line #define _getbuf(x) 1;pushquote(_sqicb._EFbuf,256) then in your .4gl you can find what is in the buffer within an 'ON KEY' by using a 'function' call of the following form call _getbuf() returning charbuf # where charbuf is char(256) unfortunately I am not aware of any way of finding the input buffer when using the RDS ... Help ?? mak (Remember - wherever you go - there you are)