Is there any way to return the actual name of the object (ie window(x).window(y).winbutton(z)) reurned. The code below reports the window id but this is not very descriptive. The objects are buttons with no text or name properties. I tried gettoproperty but Perhaps as i added a more descriptive name then (thundercommandbutton_7) it may not pick it up.

sorry this is a bit vague but i am quite new to QTP


</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> Set oDesc = Description.Create()
Set children = theobject.ChildObjects(odesc)
For i = 0 to children.count -1
Reporter.ReportEvent micDone, children(i).getroproperty(&quot;window id&quot, children(i).getroproperty(theproperty)
Next </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">