Re: Detail problem
Posted in 1999
From: "K. BHASKAR" <k.bhaskar@tatainfotech.com> > >We are using Informix version 7.2 4gl ver. 6 >Que:How to go to the 5th row from the 3rd row conditionally. >i.e. Under some conditions to go to 5th row from 3rd row I assume you mean you have an INPUT ARRAY, and you want to be able to move from row 5 to row 3? It's not simple, but something like this might help: -- set up your form with a blank, single character field at the end -- of each line of the array. Set the NOENTRY attribute for the field LET row_num = 1 LET exit_flag = FALSE WHILE TRUE INPUT ARRAY .... AFTER FIELD xyz -- do your setting of the condition here LET row_num = some_function() -- or expression! :-) EXIT INPUT BEFORE ROW IF row_num > 1 AND arr_curr() != row_num THEN NEXT FIELD blank_field ELSE LET row_num = 1 END IF ON KEY (CONTROL-E) -- or whatever LET exit_flag = TRUE END INPUT IF exit_flag THEN EXIT WHILE END IF END WHILE Please note, I haven't done this for ages, so it might need some, uhm, polishing... :-) HTH. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com