Re: Informix
Posted in 1999
>I have an array of 20 records (define arrX array[20] of int). I also have an >Informix form showing 10 records of this array (screen array >sa_arrX[10](fldName). I am accually using 15 records of my array, and I want >the "input array" statement to prevent the user of the form from moving >beyond the 15th record. Is there anyway to do this. I tried few things like: >after row if arr_curr > 15 next field previous # this is just pseudo code >or ... before row, before and after field xx if arr_curr > 15 next field>previous # this is just pseudo code Any ideas?> In my youth, we would do something like the following: LET dontexit = TRUE WHILE dontexit INPUT ARRAY.... BEFORE ROW -- check if row is null (i.e. you're going into an empty row) -- if so, exit the INPUT ARRAY after ensuring that dontexit is -- TRUE AFTER INPUT -- set dontexit to FALSE and exit the INPUT ARRAY END WHILE (With better formatting of course! :-) This makes it look like the user jumps back to the top of the array when they go down from the last record. This comes from a long time ago, but should point you in the right direction. HTH. -- "I'll Be Back" Obnoxio ************************************************ Sane? Hell, if I was sane, why would I be here? Get Your Private, Free Email at http://www.hotmail.com