Message names error in argument 2 when it should be referring to argument 1:
Incorrect call to method. Method argument 2 must be a positive whole number; found "0x000E48B8" for:
tree_info[tree_id] = info;
No, the tree_id variable is what is incorrect and it is the second argument.
In the rexxref doc, chapter 1 section 14 (1.14) there is an example that shows this:
table[i] = 5 / Same as table~"="(5,i) /
The variable i is the second argument in the message instruction. The value being assigned, 5, is the first argument.
Same in your example. The value being assigned, info, is the first argument and the tree_id variable is the second argument.
I always get fooled by that too. <grin> But that's the way it is.
You seem to have CSS turned off.
Please don't fill out this field.
Since the resolution is "Invalid" this should have been closed.