On Wednesday 12 September 2007 19:07, [EMAIL PROTECTED] wrote:
> Nate,
> That's exactly what I came up with. We were just wondering if that was the
> only way to do it.
>
> What's cool about this is I can refer to the object by doing the
> following...
>
> for i in range(1, 10):
> exec("o=self.biz%s = dabo.biz.dBizObj()" % i)
> o.CurrentSql=....
> o.do_something_else
>
> Thanks
> Larry Long
>
> p.s If I executed the code above, does
> o=None
> Release the bizobj? I don't think it does. if not, then how can I release
> it?
>
Don't you like Brendan Barnwell solution better - using setattr()?
John
_______________________________________________
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]