On Jun 26, 2009, at 3:34 PM, Mike Mabey wrote:
> Is it possible to access an object with its RegID using a string? For
> example, say I had a list of strings which corresponded several
> RegIDs in
> the app, could I do something like this:
>
> ids = ['dateText', 'name', 'location']
> for x in ids:
> self.Form.getElementByRegID(x).Value = someVal
>
> ??
>
> Sorry, sometimes I can't help but think in terms of JavaScript.
getattr(self.Form, x)
-- Ed Leafe
_______________________________________________
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/[email protected]