Paul McNett wrote:
> Christof Wollenhaupt wrote: > >> obj.AddProperty(cPropertyName,eNewValue) >> >> not that is more readable, but certainly more oopy. <g> > > But I'm not adding a property; the property already exists.
...I see that it works though. This is better in my opinion because it doesn't rely on runtime evaluation to get object references. Thanks for pointing out that AddProperty() can set a property value even if the property exists. I would have expected an error "Property already exists" if you tried to add it again, but I'm thinking in Python I guess.
-- pkm ~ http://paulmcnett.com
©2007 Paul McNett |