Re: 4GL v4.10 CONSTRUCT question
Posted in 1994
From Dennis Pimple: * * shaneb@mentat.mel.cocam.oz.au (Shane Booth) writes: * * >I believe that the following message didn't make it to the group so I * >am resending it. Apologies if you have already seen it. * * >------------------------------------------------------------------------- * * >On page S-89 of the Informix-4GL Supplement (for version 4.10), it states * >that in an ON KEY clause of a CONSTRUCT statement that you can override * >the default and change the input buffer value for the current field. * * >I didn't understand the bit that said: '...assigning a new value to the * >corresponding variable...' What is the 'corresponding variable'? * * The 'corresponding variable' is the field to which you want to put the * buffer value. See the DISPLAY statements in the code example below. * That's what's puting the values in the where clause. * * >I would be most grateful if someone could provide a code snippet to show * >me how this is done. * < Code Deleted > One problem with the CONSTRUCT - ON KEY cluase to change the input buffer value is that if you call a function within the ON KEY and that function has an INPUT statement in it, anything you return will not be displayed. Now, on the other hand, if you call that function, and it has a DISPLAY ARRAY, everything works fine. Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ #include <disclaimer.h> \\_/