>oNode = TreeView.HitTest(x,y) && CAN RETURN NULL >*? TYPE('oNode') && returns "O" because it is typed to "O", but the value is NULL >* use >? ISNULL(m.oNode) >* or >? VARTYPE(m.oNode) && print X >IF !ISNULL(m.oNode) >? M.oNode.Text && for me this is good >ENDIF >>
? ISNULL(m.oNode) && .F. ? TYPE('m.oNode') && 'C' (I'm using VFP 5) IF !ISNULL(m.oNode) ? m.oNode.Text && error! ENDIF ? TYPE('m.oNode.Text') && 'U'I tried various different locations {x,y} of the TreeView, they all behave the same. I even tried referencing the object reference of the TreeView - as in THISFORM.TreeView.OBJECT.HitTest(x,y) - but to no particular good.