On Monday 01 October 2007 12:09, [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 > > Thanks, > Larry Long
getattr(object, name, default=None): -- John Fabiani _______________________________________________ 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]
