Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
LGN -Abteilung 2- reported that SCROLL ... UP/DOWN BY in INPUT ARRAY no longer moved the current line in Informix 4GL 7.30 on Linux, though it worked in 4.1. Earle Long asked for details and code. Andrew Hamm said he had never seen SCROLL control the current line, that it is transient, and that version 7.3 now does what he wanted from it. No fix was given.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Hello!
I use Informix 4gl version 7.30 / Linux 2.2.16.
INPUT ARRAY: "SCROLL ... UP/DOWN BY ..." doesn't work!
Could someone help me?
Thanks!
↪ replying to LGN -Abteilung 2-
Earle A Long — — source: Informix-list mailing list archive (1991-1998)
More explanation than "doesn't work" would be useful along with the source
code.
Yours
--
Earle A Long (Senior DBA)
SinglePoint Limited
"LGN -Abteilung 2-" <info@lgn-2.h.uunet.de> wrote in message
news:3a8a65a8$0$8783$73bec562@personalnews.de.uu.net...
> Hello!
>
> I use Informix 4gl version 7.30 / Linux 2.2.16.
>
> INPUT ARRAY: "SCROLL ... UP/DOWN BY ..." doesn't work!
>
> Could someone help me?
>
> Thanks!
>
>
First I have to say that "SCROLL ... UP/DOWN BY ..." worked with the former
Informix4gl-Version 4.1.
Now (Version 7.30) the current line doesn't move?! Here is an example:
INPUT ARRAY da_v0011
WITHOUT DEFAULTS
FROM scr_v0011.*
...
ON KEY (F5)
LET pi_scroll = ARR_COUNT() - ARR_CURR()
SCROLL scr_v0011.* UP BY pi_scroll
LET pi_arr = ARR_CURR()
LET pi_scr = SCR_LINE()
DISPLAY da_v0011[pi_arr].* TO scr_v0011[pi_scr].*
...
Thanks,
HP
Earle A Long schrieb in Nachricht ...
>More explanation than "doesn't work" would be useful along with the source
>code.
>
>Yours
>--
>Earle A Long (Senior DBA)
>SinglePoint Limited
>
>
>"LGN -Abteilung 2-" <info@lgn-2.h.uunet.de> wrote in message
>news:3a8a65a8$0$8783$73bec562@personalnews.de.uu.net...
>> Hello!
>>
>> I use Informix 4gl version 7.30 / Linux 2.2.16.
>>
>> INPUT ARRAY: "SCROLL ... UP/DOWN BY ..." doesn't work!
>>
>> Could someone help me?
>>
>> Thanks!
>>
>>
>
>
↪ replying to LGN -Abteilung 2-
Andrew Hamm — — source: Informix-list mailing list archive (1991-1998)
LGN -Abteilung 2- wrote in message
<3a8a9d83$0$8778$73bec562@personalnews.de.uu.net>...
>First I have to say that "SCROLL ... UP/DOWN BY ..." worked with the former
>Informix4gl-Version 4.1.
>Now (Version 7.30) the current line doesn't move?! Here is an example:
>
>INPUT ARRAY da_v0011
> WITHOUT DEFAULTS
> FROM scr_v0011.*
>
>...
>
>ON KEY (F5)
> LET pi_scroll = ARR_COUNT() - ARR_CURR()
> SCROLL scr_v0011.* UP BY pi_scroll
> LET pi_arr = ARR_CURR()
> LET pi_scr = SCR_LINE()
> DISPLAY da_v0011[pi_arr].* TO scr_v0011[pi_scr].*
>
Emmm err - I've NEVER seen SCROLL do what you claim it does. It would be
wonderful to control the current line. But AFAIK it's always done a
transient job, and as soon as the INPUT statement goes back to a waiting
state (waiting for keyboard input) it reasserts it's positioning and you've
wasted your time with the SCROLL. I thought SCROLL was only useful if you
are manually managing your own screen array.
Perhaps I tested on a defective version? If SCROLL can be used usefully in
INPUT ARRAY, I'd like to know about it; 5 years ago please! Version 7.3 now
does what I wanted SCROLL to do.
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.