On Jan 8, 2008, at 9:08 PM, Adrian Klaver wrote:
> Alright I understand. So how does one go about referencing the
> properties of
> an object from the command window within a unpopulated form? In
> other words
> how do I find the Keys values for the Dropdown list with name of
> season and
> RegID of Season?
There are two ways, neither of which involve direct name references.
The first is to select the control, and then use
self.Application.Selection to get a list of selected objects; if
there is only one selected object, self.Application.Selection[0] will
return that.
My favorite technique, though, is to simply place your mouse over
the object you want, and then do:
o = dabo.ui.getMouseObject()
print o.Keys
I use getMouseObject() all the time; I consider it essential to
interacting with live objects.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.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]