Forum Discussion

liangn's avatar
liangn
Occasional Contributor
15 years ago

#32770 was not recognized

Hello,



one of my #32770 was not recognized, in debugger the Len(x.Child(i).WndClass) was 0.



After the checking in "Object Browser" manually, in debugger the "x.Child(i).WndClass" was #32770 again.



My question, how could this "#32770" window be recognized without manual checking it in "Object Browser".



Many thanks.



Nan



Here is the code:

for i = 0 to p1.ChildCount -1


    While Len(p1.Child(i).WndClass) < 1


        delay(866)


    wend


    if instr(p1.Child(i).WndClass, "3277") then


        otherWindowThanPlan = 1


        exit function


    elseif instr(p1.Child(i).name, "3277") then


        otherWindowThanPlan = 1


        exit function


    end if


next