Re: Syntax error reported but I cannot see it
Mike Aubury <[email protected]> Wed, 10 Mar 2021 19:27:07 +0000
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WFdAuVgvDAGVD=ubKpu33X+wiBRzcfJ1W1PrNN5dyrKVw@mail.gmail.com> |
Did you try the display? On Wed, 10 Mar 2021, 19:25 James B. Byrne via Aubit4gl-discuss, < [email protected]> wrote: > > > On Wed, March 10, 2021 13:58, James B. Byrne wrote: > > > > > I actually solved this issue by adding CLIPPED to the end of 839. At > least, > > the compiler error went away. > > > > Thank you for the help. > > > > Regards, > > > > I actually did not solve it. It is a runtime error. I added a tmp_stock > record and used the technique suggested. However, all that did was move the > line number reported. > > > 873 FOREACH c_stockpop INTO tmp_stock.* > 874 LET pa_stock[stock_cnt].* = tmp_stock.* > 875 LET stock_cnt = stock_cnt + 1 > 876 IF stock_cnt > array_sz THEN -- buffer overflow > check > 877 LET over_size = TRUE > 878 EXIT FOREACH -- stop additional > cycles > 879 END IF > 880 END FOREACH > > > > Err:Program ./ex11.4ae stopped at 'ex11.4gl', line number 873. > Error status number -201. > syntax error at or near "S". > > 4gl function call stack : > ex11.4gl (Line 469) calls stock_popup(stock_item=) > ex11.4gl (Line 172) calls input_items() > ex11.4gl (Line 90) calls add_order() > MAIN > > > > -- > *** e-Mail is NOT a SECURE channel *** > Do NOT transmit sensitive data via e-Mail > Unencrypted messages have no legal claim to privacy > Do NOT open attachments nor follow links sent by e-Mail > > James B. Byrne mailto:[email protected] > Harte & Lyne Limited http://www.harte-lyne.ca > 9 Brockley Drive vox: +1 905 561 1241 > Hamilton, Ontario fax: +1 905 561 0757 > Canada L8E 3C3 > > > > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss