Robert A. Sisk ha scritto:
> Hello, Alfie and RxMUIers.
>
> The attached example is my attempt to get a compound variable in a
> PopObject.OpenFun macro. What am I doing wrong? Is RxMUIGetVar() broken?
>
> RxMUI 42.2, MUI 3.8, AmigaOS 3.9, A4000/040
>
> Kind regards,
>
Very tricky one.
Listen, ARexx store compounds in a case sensitive way! Hard to believe
but you can see that in your examples with a
---
n=StemFields(roster,f)
do i=0 to n-1
say f.i
end
---
What RxMUIGetVar() do is to get an var in the vars tree in a case
insensitive way. So f.e., it tries to get "ROSTER.CLUB MED" when
"Roster.Club Med" is the name of the var. The space in the var name is
also problematic.
What you have to do is:
---
Club="FIGHTCLUB"
...
Club="CLUBMED"
...
Roster=RxMUIGetVar(UPPER(COMPRESS(Roster.Club));
---
That's all, in the easier way.
I can't do anything to change that behavior because of any changes will
create more complications and incompatibilities.
Ciao. Alfonso