janama wrote: > i can use this: > aaa = 1 > result = eval("self.b%s.SetBitmapDisabled(self.yellow)" % aaa) > > .... How would i to achieve this with getattr() ? result = getattr(self, 'b%s' % aaa).SetBitmapDisabled(self.yellow) --Scott David Daniels scott.daniels at acm.org