For i=0 to 2
Dim myDesc
Set myDesc = Description.Create()
myDesc("Class Name").Value = "Dialog"
myDesc("regexpwndtitle").Value = "Login"
Dim desc_test
Set desc_test=Description.Create()
desc_test("Class Name").Value="WinEdit"
desc_test("attached text").Value="Agent Name:"
set bb = desktop.ChildObjects(desc_test)
Msgbox bb.count