Re: array ?
Posted in 1994
doug@catseye.snide.com (Douglas R. Probst) writes: >Hi! I have a question for anyone who is familiar with Dave Snyder's db4glgen >I have created a header/detail application. >I used the code generator for the header section and example code to create >the detail . >The detail section has a screen array of 3 field 10 rows long & >the program array is 25 long >Now for the problem; how do I get reverse video on and off as I enter and >exit each field of the array?? >The functions reverse_on and reverse_off use w_record.{field name} but my >array is not part of the working record variable. For each *Field* of the array, rather than each *row* of the array: DEFINE arr SMALLINT DEFINE scr SMALLINT ... INPUT ARRAY array ... FROM screenrecord.* BEFORE ROW LET arr = arr_curr() LET scr = scr_line() BEFORE FIELD a DISPLAY array[arr].a TO screenrecord[scr].a ATTRIBUTE(REVERSE) AFTER FIELD a DISPLAY array[arr].a TO screenrecord[scr].a # repeat for each field ... END INPUT For each *row* in the array, there is a bit of trickiness, so if that's that you really wanted, repost and I'll provide the long-winded solution. ======================================================================= Dennis J. Pimple dennisp@informix.com Opinions expressed Senior Consultant -------------------- are mine, and do not Informix Software Inc Voice: 303-850-0210 necessarily reflect Denver Colorado USA Fax: 303-779-4025 those of my employer.