Re: record with associative array errors.
Iwan AB <[email protected]> Wed, 29 Mar 2023 22:22:40 +0700
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAHJCSmLYbK-pa6AS02MhfYRgiwFUmV45p7y+bkRT657=XYO7PQ@mail.gmail.com> |
--===============0103585604414944108== Content-Type: multipart/alternative; boundary="000000000000acc87905f80b8ca0" --000000000000acc87905f80b8ca0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I hope, by making it possible to work in a record, it will be possible to use COPYOF and COPYBACK to pass the associative arrays as function parameters. On Wed, Mar 29, 2023 at 9:27=E2=80=AFPM Mike Aubury <[email protected]> wrote: > I think associative arrays will only work as top level variables - it > might be possible to get them to work in a record- but not in something > like an ARRAY. > > I'll update the code to check for this and raise an error. > > > On Tue, 28 Mar 2023 at 01:19, Iwan AB <[email protected]> wrote: > >> Dear Aubit4GL Team, >> >> I try to define associative arrays within a record as follows >> >> DEFINE >> wr_menu RECORD >> cmdtext ASSOCIATE CHAR(1) WITH ARRAY[26] OF VARCHAR(70), >> caption ASSOCIATE CHAR(1) WITH ARRAY[26] OF VARCHAR(70) >> END RECORD >> >> MAIN >> CALL menu_item("A", "MENU A") >> CALL menu_item("B", "MENU B") >> CALL menu_item("C", "MENU C") >> >> DISPLAY wr_menu.caption<<"A">>, " =3D> ", wr_menu.cmdtext<<"A">> >> >> END MAIN >> >> FUNCTION menu_item(w_key, w_caption) >> DEFINE w_key CHAR(1), w_caption VARCHAR(70) >> >> LET wr_menu.cmdtext<<w_key>> =3D " ", w_caption >> LET wr_menu.caption<<w_key>> =3D w_caption >> >> END FUNCTION, >> >> when compiled, it produces the following errors >> >> In file included from p_testmenu4.c:1: >> /opt/aubit4gl/incl/a4gl_incl_4glhdr.h:75:39: error: expected =E2=80=98:= =E2=80=99, =E2=80=98,=E2=80=99, >> =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99 or =E2=80=98__attribute__=E2=80= =99 before =E2=80=98=3D=E2=80=99 token >> 75 | #define DEF_ASS(uass,d) char * uass[d]=3D{(char *)-1} >> | ^ >> p_testmenu4.c:39:4: note: in expansion of macro =E2=80=98DEF_ASS=E2=80= =99 >> 39 | DEF_ASS (_usgcmdtext,26+1); >> | ^~~~~~~ >> p_testmenu4.c: In function =E2=80=98init_module_variables=E2=80=99: >> p_testmenu4.c:62:31: error: =E2=80=98struct <anonymous>=E2=80=99 has no = member named >> =E2=80=98cmdtext=E2=80=99 >> 62 | A4GL_setnull(13,&wr_menu.cmdtext[_fglcnt_0_0],0x46); /*1 *= / >> | ^ >> p_testmenu4.c:68:31: error: =E2=80=98struct <anonymous>=E2=80=99 has no = member named >> =E2=80=98caption=E2=80=99 >> 68 | A4GL_setnull(13,&wr_menu.caption[_fglcnt_0_0],0x46); /*1 *= / >> | ^ >> p_testmenu4.c: In function =E2=80=98main=E2=80=99: >> p_testmenu4.c:144:31: error: =E2=80=98struct <anonymous>=E2=80=99 has no= member named >> =E2=80=98caption=E2=80=99 >> 144 | A4GL_push_variable(&wr_menu.ASSOCIATE_CAPTION("A",0),0x46000d= ); >> | ^ >> p_testmenu4.c:44:44: warning: implicit declaration of function >> =E2=80=98A4GL_ass_hash=E2=80=99 [-Wimplicit-function-declaration] >> 44 | #define ASSOCIATE_CAPTION(w,rw) >> caption[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_usgcaption),rw)] >> | ^~~~~~~~~~~~~ >> p_testmenu4.c:144:32: note: in expansion of macro =E2=80=98ASSOCIATE_CAP= TION=E2=80=99 >> 144 | A4GL_push_variable(&wr_menu.ASSOCIATE_CAPTION("A",0),0x46000d= ); >> | ^~~~~~~~~~~~~~~~~ >> p_testmenu4.c:44:58: error: =E2=80=98_usgcaption=E2=80=99 undeclared (fi= rst use in this >> function) >> 44 | #define ASSOCIATE_CAPTION(w,rw) >> caption[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_usgcaption),rw)] >> | >> ^~~~~~~~~~~ >> p_testmenu4.c:144:32: note: in expansion of macro =E2=80=98ASSOCIATE_CAP= TION=E2=80=99 >> 144 | A4GL_push_variable(&wr_menu.ASSOCIATE_CAPTION("A",0),0x46000d= ); >> | ^~~~~~~~~~~~~~~~~ >> p_testmenu4.c:44:58: note: each undeclared identifier is reported only >> once for each function it appears in >> 44 | #define ASSOCIATE_CAPTION(w,rw) >> caption[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_usgcaption),rw)] >> | >> ^~~~~~~~~~~ >> p_testmenu4.c:144:32: note: in expansion of macro =E2=80=98ASSOCIATE_CAP= TION=E2=80=99 >> 144 | A4GL_push_variable(&wr_menu.ASSOCIATE_CAPTION("A",0),0x46000d= ); >> | ^~~~~~~~~~~~~~~~~ >> p_testmenu4.c:147:31: error: =E2=80=98struct <anonymous>=E2=80=99 has no= member named >> =E2=80=98cmdtext=E2=80=99 >> 147 | A4GL_push_variable(&wr_menu.ASSOCIATE_CMDTEXT("A",0),0x46000d= ); >> | ^ >> p_testmenu4.c:40:58: error: =E2=80=98_usgcmdtext=E2=80=99 undeclared (fi= rst use in this >> function) >> 40 | #define ASSOCIATE_CMDTEXT(w,rw) >> cmdtext[A4GL_ass_hash(_usgcmdtext,1+1,26,w,sizeof(_usgcmdtext),rw)] >> | >> ^~~~~~~~~~~ >> p_testmenu4.c:147:32: note: in expansion of macro =E2=80=98ASSOCIATE_CMD= TEXT=E2=80=99 >> 147 | A4GL_push_variable(&wr_menu.ASSOCIATE_CMDTEXT("A",0),0x46000d= ); >> | ^~~~~~~~~~~~~~~~~ >> p_testmenu4.c: In function =E2=80=98menu_item=E2=80=99: >> p_testmenu4.c:202:26: error: =E2=80=98struct <anonymous>=E2=80=99 has no= member named >> =E2=80=98cmdtext=E2=80=99 >> 202 | A4GL_pop_var2(&wr_menu.ASSOCIATE_CMDTEXT(w_key,0),13,70); >> | ^ >> p_testmenu4.c:40:58: error: =E2=80=98_usgcmdtext=E2=80=99 undeclared (fi= rst use in this >> function) >> 40 | #define ASSOCIATE_CMDTEXT(w,rw) >> cmdtext[A4GL_ass_hash(_usgcmdtext,1+1,26,w,sizeof(_usgcmdtext),rw)] >> | >> ^~~~~~~~~~~ >> p_testmenu4.c:202:27: note: in expansion of macro =E2=80=98ASSOCIATE_CMD= TEXT=E2=80=99 >> 202 | A4GL_pop_var2(&wr_menu.ASSOCIATE_CMDTEXT(w_key,0),13,70); >> | ^~~~~~~~~~~~~~~~~ >> p_testmenu4.c:211:26: error: =E2=80=98struct <anonymous>=E2=80=99 has no= member named >> =E2=80=98caption=E2=80=99 >> 211 | A4GL_pop_var2(&wr_menu.ASSOCIATE_CAPTION(w_key,0),13,70); >> | ^ >> p_testmenu4.c:44:58: error: =E2=80=98_usgcaption=E2=80=99 undeclared (fi= rst use in this >> function); did you mean =E2=80=98w_caption=E2=80=99? >> 44 | #define ASSOCIATE_CAPTION(w,rw) >> caption[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_usgcaption),rw)] >> | >> ^~~~~~~~~~~ >> p_testmenu4.c:211:27: note: in expansion of macro =E2=80=98ASSOCIATE_CAP= TION=E2=80=99 >> 211 | A4GL_pop_var2(&wr_menu.ASSOCIATE_CAPTION(w_key,0),13,70); >> | ^~~~~~~~~~~~~~~~~ >> >> I use Aubit4GL 1.6.1 >> >> Why is that? >> >> Best regards, >> >> >> Iwan >> >> >> _______________________________________________ >> Aubit4gl-discuss mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss >> > --000000000000acc87905f80b8ca0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I hope, by making it possible to work in a record, it will= be possible to use COPYOF and COPYBACK to pass the associative arrays as f= unction parameters.<div>=C2=A0 =C2=A0 =C2=A0<br></div></div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 29, 2023= at 9:27=E2=80=AFPM Mike Aubury <<a href=3D"mailto:[email protected]">mike@= aubit.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr">I think associative arrays will only work as to= p level variables - it might be possible to get them to work=C2=A0in a reco= rd- but not in something like an ARRAY.<div><br></div><div>I'll update = the code to check for this and raise an error.<br><div><br></div></div></di= v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On T= ue, 28 Mar 2023 at 01:19, Iwan AB <<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div>Dea= r Aubit4GL Team,</div><div><br></div><div>I try to define associative array= s within a record as follows</div><div><br></div><div>DEFINE</div><div>=C2= =A0 =C2=A0wr_menu RECORD</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 cmdtext ASSOCIATE CHAR(1) WITH ARRAY[26] OF VARCHAR(70),</div><d= iv>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 caption ASSOCIATE CHAR(= 1) WITH ARRAY[26] OF VARCHAR(70)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0END RECORD</div><div><br></div><div>MAIN</div><div>=C2=A0 =C2=A0 = CALL menu_item("A", "MENU A")</div><div>=C2=A0 =C2=A0 C= ALL menu_item("B", "MENU B")</div><div>=C2=A0 =C2=A0 CA= LL menu_item("C", "MENU C")</div><div><br></div><div>= =C2=A0 =C2=A0 DISPLAY wr_menu.caption<<"A">>, " = =3D> ", wr_menu.cmdtext<<"A">></div><div><br>= </div><div>END MAIN</div><div><br></div><div>FUNCTION menu_item(w_key, w_ca= ption)</div><div>=C2=A0 =C2=A0 DEFINE=C2=A0 w_key CHAR(1), w_caption VARCHA= R(70)</div><div><br></div><div>=C2=A0 =C2=A0 LET wr_menu.cmdtext<<w_k= ey>> =3D " ", w_caption</div><div>=C2=A0 =C2=A0 LET wr_menu= .caption<<w_key>> =3D w_caption</div><div><br></div><div>END FU= NCTION,</div><div><br></div><div>when compiled, it produces the following e= rrors</div><div><br></div><div>In file included from p_testmenu4.c:1:</div>= <div>/opt/aubit4gl/incl/a4gl_incl_4glhdr.h:75:39: error: expected =E2=80=98= :=E2=80=99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98}=E2=80=99 o= r =E2=80=98__attribute__=E2=80=99 before =E2=80=98=3D=E2=80=99 token</div><= div>=C2=A0 =C2=A075 | #define DEF_ASS(uass,d) char * uass[d]=3D{(char *)-1}= </div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0^</div><div>p_testmenu4.c:39:4: note: in expansion = of macro =E2=80=98DEF_ASS=E2=80=99</div><div>=C2=A0 =C2=A039 |=C2=A0 =C2=A0= DEF_ASS (_usgcmdtext,26+1);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 = ^~~~~~~</div><div>p_testmenu4.c: In function =E2=80=98init_module_variables= =E2=80=99:</div><div>p_testmenu4.c:62:31: error: =E2=80=98struct <anonym= ous>=E2=80=99 has no member named =E2=80=98cmdtext=E2=80=99</div><div>= =C2=A0 =C2=A062 |=C2=A0 =C2=A0 =C2=A0 =C2=A0A4GL_setnull(13,&wr_menu.cm= dtext[_fglcnt_0_0],0x46); /*1 */</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0^</div><div>p_testmenu4.c:68:31: error: =E2=80= =98struct <anonymous>=E2=80=99 has no member named =E2=80=98caption= =E2=80=99</div><div>=C2=A0 =C2=A068 |=C2=A0 =C2=A0 =C2=A0 =C2=A0A4GL_setnul= l(13,&wr_menu.caption[_fglcnt_0_0],0x46); /*1 */</div><div>=C2=A0 =C2= =A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^</div><div>p_testmenu4.c: = In function =E2=80=98main=E2=80=99:</div><div>p_testmenu4.c:144:31: error: = =E2=80=98struct <anonymous>=E2=80=99 has no member named =E2=80=98cap= tion=E2=80=99</div><div>=C2=A0 144 |=C2=A0 =C2=A0 A4GL_push_variable(&w= r_menu.ASSOCIATE_CAPTION("A",0),0x46000d);</div><div>=C2=A0 =C2= =A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^</div><div>p_testmenu4.c:4= 4:44: warning: implicit declaration of function =E2=80=98A4GL_ass_hash=E2= =80=99 [-Wimplicit-function-declaration]</div><div>=C2=A0 =C2=A044 |=C2=A0 = =C2=A0 #define ASSOCIATE_CAPTION(w,rw) caption[A4GL_ass_hash(_usgcaption,1+= 1,26,w,sizeof(_usgcaption),rw)]</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~= ~~~~~~~~</div><div>p_testmenu4.c:144:32: note: in expansion of macro =E2=80= =98ASSOCIATE_CAPTION=E2=80=99</div><div>=C2=A0 144 |=C2=A0 =C2=A0 A4GL_push= _variable(&wr_menu.ASSOCIATE_CAPTION("A",0),0x46000d);</div><= div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~= ~~~~~</div><div>p_testmenu4.c:44:58: error: =E2=80=98_usgcaption=E2=80=99 u= ndeclared (first use in this function)</div><div>=C2=A0 =C2=A044 |=C2=A0 = =C2=A0 #define ASSOCIATE_CAPTION(w,rw) caption[A4GL_ass_hash(_usgcaption,1+= 1,26,w,sizeof(_usgcaption),rw)]</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~</div><div>p_testm= enu4.c:144:32: note: in expansion of macro =E2=80=98ASSOCIATE_CAPTION=E2=80= =99</div><div>=C2=A0 144 |=C2=A0 =C2=A0 A4GL_push_variable(&wr_menu.ASS= OCIATE_CAPTION("A",0),0x46000d);</div><div>=C2=A0 =C2=A0 =C2=A0 |= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~</div><div>p_testme= nu4.c:44:58: note: each undeclared identifier is reported only once for eac= h function it appears in</div><div>=C2=A0 =C2=A044 |=C2=A0 =C2=A0 #define A= SSOCIATE_CAPTION(w,rw) caption[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_u= sgcaption),rw)]</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~</div><div>p_testmenu4.c:144:32: not= e: in expansion of macro =E2=80=98ASSOCIATE_CAPTION=E2=80=99</div><div>=C2= =A0 144 |=C2=A0 =C2=A0 A4GL_push_variable(&wr_menu.ASSOCIATE_CAPTION(&q= uot;A",0),0x46000d);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~</div><div>p_testmenu4.c:147:31: erro= r: =E2=80=98struct <anonymous>=E2=80=99 has no member named =E2=80=98= cmdtext=E2=80=99</div><div>=C2=A0 147 |=C2=A0 =C2=A0 A4GL_push_variable(&am= p;wr_menu.ASSOCIATE_CMDTEXT("A",0),0x46000d);</div><div>=C2=A0 = =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^</div><div>p_testmenu4= .c:40:58: error: =E2=80=98_usgcmdtext=E2=80=99 undeclared (first use in thi= s function)</div><div>=C2=A0 =C2=A040 |=C2=A0 =C2=A0 #define ASSOCIATE_CMDT= EXT(w,rw) cmdtext[A4GL_ass_hash(_usgcmdtext,1+1,26,w,sizeof(_usgcmdtext),rw= )]</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^~~~~~~~~~~</div><div>p_testmenu4.c:147:32: note: in expa= nsion of macro =E2=80=98ASSOCIATE_CMDTEXT=E2=80=99</div><div>=C2=A0 147 |= =C2=A0 =C2=A0 A4GL_push_variable(&wr_menu.ASSOCIATE_CMDTEXT("A&quo= t;,0),0x46000d);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~</div><div>p_testmenu4.c: In function =E2=80= =98menu_item=E2=80=99:</div><div>p_testmenu4.c:202:26: error: =E2=80=98stru= ct <anonymous>=E2=80=99 has no member named =E2=80=98cmdtext=E2=80=99= </div><div>=C2=A0 202 |=C2=A0 =C2=A0 A4GL_pop_var2(&wr_menu.ASSOCIATE_C= MDTEXT(w_key,0),13,70);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^= </div><div>p_testmenu4.c:40:58: error: =E2=80=98_usgcmdtext=E2=80=99 undecl= ared (first use in this function)</div><div>=C2=A0 =C2=A040 |=C2=A0 =C2=A0 = #define ASSOCIATE_CMDTEXT(w,rw) cmdtext[A4GL_ass_hash(_usgcmdtext,1+1,26,w,= sizeof(_usgcmdtext),rw)]</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~</div><div>p_testmenu4.c:= 202:27: note: in expansion of macro =E2=80=98ASSOCIATE_CMDTEXT=E2=80=99</di= v><div>=C2=A0 202 |=C2=A0 =C2=A0 A4GL_pop_var2(&wr_menu.ASSOCIATE_CMDTE= XT(w_key,0),13,70);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0^~~~~~~~~~~~~~~~~</div><div>p_testmenu4.c:211:26: error: =E2=80=98struct= <anonymous>=E2=80=99 has no member named =E2=80=98caption=E2=80=99</= div><div>=C2=A0 211 |=C2=A0 =C2=A0 A4GL_pop_var2(&wr_menu.ASSOCIATE_CAP= TION(w_key,0),13,70);</div><div>=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^</di= v><div>p_testmenu4.c:44:58: error: =E2=80=98_usgcaption=E2=80=99 undeclared= (first use in this function); did you mean =E2=80=98w_caption=E2=80=99?</d= iv><div>=C2=A0 =C2=A044 |=C2=A0 =C2=A0 #define ASSOCIATE_CAPTION(w,rw) capt= ion[A4GL_ass_hash(_usgcaption,1+1,26,w,sizeof(_usgcaption),rw)]</div><div>= =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ^~~~~~~~~~~</div><div>p_testmenu4.c:211:27: note: in expansion of macro= =E2=80=98ASSOCIATE_CAPTION=E2=80=99</div><div>=C2=A0 211 |=C2=A0 =C2=A0 A4= GL_pop_var2(&wr_menu.ASSOCIATE_CAPTION(w_key,0),13,70);</div><div>=C2= =A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~</div><div><br></= div><div>I use Aubit4GL 1.6.1</div><div><br></div><div>Why is that?</div><d= iv><br></div><div>Best regards,</div><div><br></div><div><br></div><div>Iwa= n</div><div><br></div><div><br></div></div></div> _______________________________________________<br> Aubit4gl-discuss mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank"= >[email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss" r= el=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/lis= tinfo/aubit4gl-discuss</a><br> </blockquote></div> </blockquote></div> --000000000000acc87905f80b8ca0-- --===============0103585604414944108== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0103585604414944108== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss --===============0103585604414944108==--