Re: next field problem
Posted in 1995
Joe, Just a thought - I had a similar problem a log time ago. How are you setting the value for your variable 'gv_row' ? I have found that you must let Informix know what array line you are on inside every AFTER FIELD, BEFORE FIELD, ON KEY etc ... clause. Try using the command 'LET gv_row = arr_curr()' as follows: AFTER FIELD back_order LET gv_row = arr_curr() IF gr_dtl[gv_row].back_order not matches "[YN]" then CALL prg_error(0, "VALUE ENTERED MUST BE EITHER \\"Y\\" OR \\"N\\"") NEXT FIELD back_order END IF I hope this helps, Regards, Keith. *************** tech@compsys.demon.co.uk *************** Tel: 044 (0)1482 803961 Fax: 044 (0)1482 804333 ********************************************************