Re: on key question
Posted in 1994
Tony Chow (t.chou@cs.umb.edu) wrote, >I am having a kind-of-strange problem with the on key statement inside >an input array. Consider the following function: > INPUT ARRAY arr_test WITHOUT DEFAULTS FROM sc_test.* > ON KEY (F2, control-f) > DISPLAY "TEST" >TEST will be displayed when I press ctrl-f but nothing will happen when >I press F2. But when I change the input array to input and both ctrl-f >and F2 work. I have another 4GL program that uses input array but >everything works fine. I have been trying to make all kind of stupid >changes to the code but no luck. Does anyone have similar problem? >I am using Online 5.01.uc1, 4GL 4.10.ue2 and SunOS 4.1.3. >Thanks in advance. >Tony > This is due to the fact that the default key used to delete a row in an input array is F2. If you really want to use the F2 key you have to set the default delete key to be something else by OPTIONS DELETE KEY F36 # or whatever Your code would then work as you expected. Regards, Peter -- Peter K. Botcherby e-mail : p.botcherby@umds.ac.uk Paediatric Research Unit Guys Hospital, London, UK.