associative array as command's options
Iwan AB <[email protected]> Wed, 29 Mar 2023 10:15:29 +0700
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAHJCSmKW0Ac5TV_HJajM8e2xR-wkbNS-zsoB0bN=w+iyj8LRDw@mail.gmail.com> |
--===============3573762937646376182==
Content-Type: multipart/alternative; boundary="00000000000013c50d05f80164e1"
--00000000000013c50d05f80164e1
Content-Type: text/plain; charset="UTF-8"
Dear Aubit4GL Team,
I found that associative arrays can not be used as options in menu
statement.
MAIN
DEFINE
wa_options ASSOCIATE CHAR(1) WITH ARRAY[10] OF CHAR(60)
LET wa_options<<"A">> = " OPTION A"
MENU " MENU"
COMMAND "A " wa_options<<"A">>
DISPLAY wa_options<<"A">>
COMMAND "X "
EXIT MENU
END MENU
END MAIN
the program cannot be compiled. no *.err file is produced.
I hope this can be fixed so that we can use associative array as option
command in menu statement.
Thank you.
Best regards,
Iwan
--00000000000013c50d05f80164e1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Dear Aubit4GL Team,<br><div><br></div><div>I found that as=
sociative arrays can not be used as options in menu statement.</div><div><b=
r></div><div>MAIN</div><div>DEFINE=C2=A0=C2=A0</div><div>=C2=A0 =C2=A0 wa_o=
ptions=C2=A0ASSOCIATE CHAR(1) WITH ARRAY[10] OF CHAR(60)</div><div><br></di=
v><div>=C2=A0 =C2=A0 LET wa_options<<"A">> =3D "=
OPTION A"</div><div>=C2=A0 =C2=A0 MENU " MENU"</div><div>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0COMMAND "A " wa_options<<=
"A">></div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 DISPLAY wa_options<<"A">></div><div><br></div>=
<div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 COMMAND "X "</div><div>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0EXIT MENU</div><div>=
=C2=A0 =C2=A0 END MENU</div><div><br></div><div>END MAIN</div><div><br></di=
v><div>the program cannot be compiled. no *.err file is produced.</div><div=
><br></div><div><div>I hope this can be fixed so that we can use associativ=
e array as option command in menu statement.</div><div>Thank you.</div><div=
><br></div><div>Best regards,</div><div><br></div><div>Iwan</div><div></div=
></div><div><br></div><div><br></div></div>
--00000000000013c50d05f80164e1--
--===============3573762937646376182==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============3573762937646376182==
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
--===============3573762937646376182==--