[EMAIL PROTECTED] wrote: > What is the best way to evaluate a property if I have a reference object and > the name of the property? > For example: > Obj=self.Form > Prop='myproperty' > > I want val=Obj.Prop to "turn into" val=self.Form.myproperty
val = getattr(self.Form, "myproperty") -- pkm ~ http://paulmcnett.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
