--- In [email protected], sgp <acs322...@...> wrote: > > I keep staring at my code below and not understanding what I'm doing wrong, I > think I've done this stuff > successfully many times before. Why are map keys set (correctly) but map > values aren't? Powerpro 4.9L > > function foo() > local map=map.create(10) > ....@bar(map) > win.debug(map.length) > for each key in map > win.debug(key,"=>",map[key]) > endfor > quit > > function bar(m) > map.set(m,"k1","v1") > map.set(m,"k2","v2") > quit > > debug window shows > 2 > k1 => > k2 => >
I suspect it would help a lot to use variable name for the map other than "map". Regards, Sheri
