Re: get_fldbuf()
Posted in 1998
I wrote: > > On Fri, 16 Oct 1998 00:41:09 +0200, "Mark D. Stock" > <mdstock@informix.com> wrote: > > > > >I wrote: > > [snip] > > >> I am guessing that if > > > >Are you using a cell phone? You seem to have been cut off. :-) > > > > Hmmmm...something went horribly wrong....not sure where tho' :-))) > > >The get_fldbuf function, AFAICR, was introduced with the CONSTRUCT > >clauses. It enables you to actually 'see' the contents of a field, > >particularly in an AFTER FIELD clause. > > > > Ah, I think I see. IS this because in a CONSTRUCT statement we are not > 'reading' the FORM fields into program variables? Exactly! With no return variables, you need to peek into the current buffer, and to do that a new function was written. As others have pointed out, you can also use the get_fldbuf, and associated functions, during other input statements, such as INPUT, to return the current field contents BEFORE it is returned to a program variable. Cheers, -- Mark. +----------------------------------------------------------+-----------+ |Mark D. Stock - Informix SA http://www.informix.com |//////// /| |mailto:mdstock@informix.com http://www.informix.com/idn |///// / //| |http://www.iiug.org +-----------------------------------+//// / ///| | Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////| | Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////| |Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////| +----------------------+-----------------------------------+-----------+