Re: how to get the value of a typed-in field
Posted in 1992
In article <1992Apr8.173243.27830@das.harvard.edu> bochner@das.harvard.edu (Harry Bochner) writes: >In article <1992Apr7.162351.9860@cssnl.syssup.tds.philips.nl>, >harry@.syssup.tds.philips.nl (Harry Weseman) writes: >|> In informix-4gl, (I have 1.10.03), I would like to inspect what the user >|> has typed in. > >Version 4.1 provides a way to do this (the get_fldbuf() function), but >it's described in the section on enhancements, so it doesn't look like there's >any way to do it in older versions. So I think you're out of luck, unless >upgrading is an option for you. > Here's basically what we use. Of course this is completely undocumented, unsupported by anyone, not guaranteed to do anything, but it works for us... #include "sqlfm.h" extern _EFICB *eficb; fgl_getbuffer() { if (eficb->_EFbuf) retquote(eficb->_EFbuf); else retquote(""); return 1; } Take a peek in /usr/informix/incl/sqlfm.h. There are a few other goodies there. Hope this helps. Hugh. -- -Hugh Grierson--hugh@fivegl.co.nz----------Go fast or go home---------------- -Task Management Ltd-Auckland-New Zealand-Ph:+64.9.5206109-Fax:+64.9.5206101-