mfoster711
12 years agoRegular Contributor
FindChild error - Object doesnt support this property or method
I am getting VBScript runtime error stating "Object doesn't suppport this property or method" on the FindChild line below. The FindAllChildren line works fine so why doesn't FindChild?
Dim gCurrWind
Dim Toolbar
Dim Toolbar2
Set gCurrWind = sys.Desktop.ActiveWindow
Toolbar = gCurrWind.FindAllChildren(Array("WndClass"), Array("msctls_statusbar32"), 20, True)
Toolbar2 = gCurrWind.FindChild(Array("WndClass"), Array("msctls_statusbar32"), 20, True)