Re: input array help (fwd)
Posted in 1996
} } > } >Dennis Pimple (dennisp@informix.com) wrote: } > } >My favorite method of disabling insert and delete keys is to set } >them to CONTROL-Q: } > } >OPTIONS INSERT KEY CONTROL-Q } >OPTIONS DELETE KEY CONTROL-Q } > } >Since CONTROL-Q is trapped by the Unix OS as xon, nothing is passed } >to the program even if the user hits the key. Trapping exceeding } >array boundries is a bit trickier, utilizing the "goto" trick of } >putting the INPUT ARRAY in a WHILE loop so you can go back to row 1 } >if the user goes past the last filled-in row. This is well } >documented in the FAQs, or ask me and I'll dig out an example for } >you. } } This is a tricky way. But how to set it back enabling insert and } delete keys after seting 'OPTIONS INSERT KEY CONTROL-Q'. } We are working with Informix 4GL V4.11 on SNI RM400. The keyboard } has special function keys for this two functions. The keys are } named 'INSERT LINE', 'DELETE LINE'. } You can reset it at any time by issuing another OPTIONS statement. You can also set up your keyboard INSERT and DELETE line keys by setting them up in termcap - of course then you run into the issue of how to DISABLE them - but then maybe that was what you were saying. (my thoughts would run along the lines of BEFORE DELETE). cheers j. _____________________________________________________________________________ Jack Parker - Hewlett Packard, DMD/IS Boise, Idaho, USA jparker@hpbs3645.boi.hp.com _____________________________________________________________________________ If anything can go wrong, fix it. To hell with Murphy. _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________