Re: Compiler error on INPUT/DISPLAY ARRAY with 2-dimensional array
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WHoQGU32S4Es1ju_UO+D9CZTDgA3S9zgaAdEHvks17fow@mail.gmail.com> |
Doesnt compile with Informix... If its a really big issue - I might be able to take a look at fixing it - but it does look like its one of those "edge" cases that wouldnt get used much. (Especially - as it doesn't work afaics in normal informix 4gl) On 18 November 2013 12:56, wh <[email protected]> wrote: > Hello, > > I have a pice of code that uses 2-dimensional arrays with INPUT/DISPLAY > ARRAY, here a minimal example: > >>> > main > define la_x array[5,50] of record a char(3), b char(10) end record > define lv_idx integer > let lv_idx = 1 > let la_x[lv_idx, 1].a = "a1" > let la_x[lv_idx, 1].b = "b1" > open window w at 1,1 with form "f1" > call set_count(10) > display array la_x[lv_idx] to s.* > close window w > end main > <<< > > form: > >>> > database formonly > screen > { > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > [a |b ] > } > > attributes > a = formonly.a; > b = formonly.b; > > instructions > screen record s[10] (a,b); > <<< > > this compiles and runs on 4JS BDL (can't test with "real" I4GL), but > throws a compiler error on aubit: > > [...] > open window w at 1,1 with form "f1" > call set_count(10) > display array la_x[lv_idx] to s.* > close window w > |___________^ > | Error at line 10, character 13 > | Variable cannot be used for an DISPLAY ARRAY (close) > end main > [...] > > > > > ------------------------------------------------------------------------------ > DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps > OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access > Free app hosting. Or install the open source package on any LAMP server. > Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! > http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss