問一下 tree node(編號:5267)

If Not Tree1.Nodes.Item("Ninq").Child Is Nothing Then
nodx2 = Tree1.Nodes("Ninq").Child.FirstSibling
 do while not nodx2.Key <> nodx2.LastSibling.Key
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ......
 loop
end if
會說"此處須要物件"
可是當我在前面有dim nodx2 as node
又會
"沒有設定物件變數或設定區塊"
why?我以前寫tree都不會有這種問題!ˍ!  help me